PDA

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



pankskothawade
04-22-2006, 08: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, 04:45 PM
location.href = "anocode.asp?ano="+strano+"&pno="+strpno;

BaldEagle