javascript redirection
// 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";<html>
<head>
<script type="text/javascript">
function RedirectionJavascript(){
document.location.href="http://manouvellepage.com";
}
</script>
</head>
<body onLoad="setTimeout('RedirectionJavascript()', 2000)">
<div>Dans 2 secondes vous allez être redirigé vers http://manouvellepage.com</div>
</body>
</html>
Also in JavaScript:
- class javascript
- how to run react native app
- function if else javascript
- sort javascript array
- prepend to array javascript
- two object combine together javascript
- console.log('qqqqqqqqqqqqqqqqqqqq'); jslint error how to fix
- copy svg to clipboard javascript
- how to send a command in js
- how to update angular version
- ExoPlayer with auto linking react native
- react Refused to execute inline script because it violates the following Content Security Policy directive
- angular 9 form value changes
- insert item into array specific index javascript
- math random js
- remove from array javascript
- lodash pascal case
- javascript number between values
- loop dictionary with key and value javascript
- how to close another browser tab with javascript
- dynamic for loop react
- beautify json python
- javascript change image src
- Material-ui wheelchair icon