javascript to pass querystring

Hi,

Can someone show me how to pass  a javascript variable into a querystring. I'm using html and javascript only. The querystring will ultimately be passed to an xslt.

i have the variable year in a js file and I want to add its value to my calendar.html url

Thanks

CharlieDevAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
BadotzConnect With a Mentor Commented:
Something like:


var url = 'http://www.someplace.com?parm1=1&parm2=2&etc=etc';

Open in new window

0
 
CharlieDevAuthor Commented:
Thanks
0
 
BadotzCommented:
No worries - glad to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.