gradinumcp
IS-IT--Management
Hi there! I just need a small help with passing values via a javascript to the ASP page using window.open.
I have 2 integer values on the page, one is a and one is b.
I want to be able to pass c which is a+b to this page.
Heres the code--any clue what iam doing wrong???
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function Add()
{
window.open(Page1.asp?c='+int('+document.form.a.value+')+ int('+document.form.b.value+')+' &value='+document.form.name.value, target='_self');
}
//-->
</SCRIPT>
I have 2 integer values on the page, one is a and one is b.
I want to be able to pass c which is a+b to this page.
Heres the code--any clue what iam doing wrong???
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function Add()
{
window.open(Page1.asp?c='+int('+document.form.a.value+')+ int('+document.form.b.value+')+' &value='+document.form.name.value, target='_self');
}
//-->
</SCRIPT>