...

View Full Version : How to pass two or more variable through java script function



pankskothawade
04-22-2006, 07:10 AM
i am writing a Java script function in asp page to pass two variables to another asp page like

function fnANO()
{
var strano

strano = flatform.ano.value;
strpno = flatform.pno.value;
location.href = "anocode.asp"?ano="+strano&"+pno="+strpno




}
But it doesn't seems to work

Their is problem in location.href.......

Pls tell me prpper syntax

BaldEagle
04-22-2006, 03:45 PM
location.href = "anocode.asp?ano="+strano+"&pno="+strpno;

BaldEagle



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum