Query strings and JavaScript?
Posted: Sat Jul 07, 2007 11:20 pm
Can someone please tell me how I can make a query string in JavaScript?
I want the following to be changed to a query string:
Thanks in advance.
I want the following to be changed to a query string:
Code: Select all
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth(); // integer, 0..11
var d = calendar.date.getDate(); // integer, 1..31
// redirect...
window.location = "/" + y + "/" + m + "/" + d + "/calendar.php";