Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grabbing parameter value from URL

Status
Not open for further replies.

mljonzs

Programmer
Joined
May 31, 2006
Messages
1
Location
US
I am using ASP with javascript. My ASP page contains a button that uses javascript to launch a new ASP window. I want to pass along a querystring parameter from the originating window but do not know how to get the value inside a javascript.

example - I'm in window1.asp which has url "window1.asp?var1=abc&var2=def"

this page uses javascript's onclick to open window2.asp. I want to send var2 into window2.asp like this : "window2.asp?var2=def" but I don't know how to grab var2 in my javascript???

Can someone help me please??

Thanks a bunch!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top