javascript redirect to another page
// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");
// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";window.location.href = "http://mywebsite.com/home.html";<script>
window.location.href = "http://mywebsite.com/home.html";
</script><button onclick="location.href='www.yoursite.com'">Click Me</button>window.location.replace('http://mywebsite.com/home.html');window.open("http://mywebsite.com/home.html")
Also in JavaScript:
- how to install chalk in node js
- javascript display block
- angular 8 to 9
- javascript check if object is empty
- javascript string get last two character
- how to uninstall nodejs web server
- remove text element jquery
- javascript base64 encode string
- find string in array javascript
- jquery modify style attribute
- cannot concatenate object of type "<class 'str'>"; only pd.Series, pd.DataFrame, and pd.Panel (deprecated) objs are valid
- A fatal JavaScript error has occurred. Should we send an error report
- nested array loop in javascript
- what is react mounting
- drupal 8 get url from node entity
- quick sort js
- form changes button enable reactive forms
- javascript number to string
- chrome add a javascript bookmark
- jquery open page in new tab
- list pci express version command line
- difference between key and code in javascript
- express request path
- javascript object keys foreach