Answers for "how to go to a link using javascript"

1

how to go to a link using 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('...');
Posted by: Guest on April-26-2022

Code answers related to "how to go to a link using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language