|
-
Feb 16th, 2005, 12:45 PM
#1
Thread Starter
Fanatic Member
how can i pass javascript varaibles in url?
hi,
how can i pass javascript varaibles in url?
Thanks and Regards
vivek.s
-
Feb 16th, 2005, 01:48 PM
#2
Re: how can i pass javascript varaibles in url?
Code:
var queryString = "?myKey=myValue";
window.location = window.location + queryString;
This won't work if you already have query strings...
-
Feb 16th, 2005, 02:08 PM
#3
Thread Starter
Fanatic Member
Re: how can i pass javascript varaibles in url?
Hi!
Thanks a lot!
would i be able to append javascript variables on <a href=> tag?
Thanks and Regards
vivek.S
-
Feb 16th, 2005, 11:12 PM
#4
Fanatic Member
Re: how can i pass javascript varaibles in url?
The easiest way would be to have your href point to the javascript (href=javascript:function-name) and then let the javascript build the querystring and do a location.replace using the querystring
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|