Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get the browser to navigate to a URL in JavaScript

//This works in all browsers:

window.location.href = '...';

/*If you wanted to change the page without it reflecting in the browser back
history, you can do:*/
window.location.replace('...');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #browser #navigate #URL #JavaScript
ADD COMMENT
Topic
Name
3+5 =