Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 660
  • Last Modified:

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

0
CharlieDev
Asked:
CharlieDev
  • 2
1 Solution
 
BadotzCommented:
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now