Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

navigate to url jquery

//As an HTTP redirect (back button will not work )
window.location.replace("http://www.google.com");

//like if you click on a link (it will be saved in the session history, 
//so the back button will work as expected)
window.location.href = "http://www.google.com";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #navigate #url #jquery
ADD COMMENT
Topic
Name
1+4 =