Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript redirect to url with parameters

window.location = "./dir/file.html?year=" + thisYear + "&" 
                                    + "month=" +thisMonth + "&"
                                    + "day=" +thisDay;
// start with a . to use relative path
// start with a / to use root
// you can also use a URL
 
PREVIOUS NEXT
Tagged: #javascript #redirect #url #parameters
ADD COMMENT
Topic
Name
9+6 =