hi,
how can i pass javascript varaibles in url?
Thanks and Regards
vivek.s
Printable View
hi,
how can i pass javascript varaibles in url?
Thanks and Regards
vivek.s
This won't work if you already have query strings...Code:var queryString = "?myKey=myValue";
window.location = window.location + queryString;
Hi!
Thanks a lot!
would i be able to append javascript variables on <a href=> tag?
Thanks and Regards
vivek.S
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