Click to See Complete Forum and Search --> : passing arguments form javascript function to new asp page


johannesburgboy
04-03-2003, 02:42 AM
How do I pass variables from a JavaScript function
if varriable name is
basis
reply


document.location=("newAspPage.asp?basis='here i want to use the value of basis' and reply='the value of reply'

what is the syntax for that??

VB is

document.location=("test.asp?basis="&basis&"&reply="&reply")

please help

gil davis
04-03-2003, 06:07 AM
It's just concatenation of strings using the "+" operator:document.location = ("newAspPage.asp?basis=" + basis + "&reply=" + reply);