Simple question from a beginner
I am using a clickable calendar and want the user to be redirected according to the date that they pick (which will correspond with the name of a folder on my server)
so what I have established that I need window.location
However, I want to add a variable to the end. So if the variable "date" equals "20091001" (Oct 1), i would want the user to be sent to http://www.mysite.com/20091001.
this is what i have tried:
window.location = "http://www.mysite.com/" + 'date'
I really dont know what I'm doing though.
Thanks for any help.
Leave off the single tick marks around the variable.
It should be:
window.location = "http://www.mysite.com/" + date
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread