javascript to redirect to another page after 5 seconds
<!DOCTYPE html>
<html>
<body>
<script>
setTimeout(function(){
window.location.href = 'https://www.tutorialspoint.com/javascript/';
}, 5000);
</script>
<p>Web page redirects after 5 seconds.</p>
</body>
</html>setTimeout(function(){
window.location.href = 'https://url.com';
}, 5000);
Also in JavaScript:
- javascript getelementbyid
- mv multiple directories
- getting view height dynamically in react native
- get current scroll height javascript
- Line 9:6: React Hook React.useEffect has a missing dependency: 'init'. Either include it or remove the dependency array
- how to compare elements in an array
- jquery hover
- js select option value when selected
- javascript objet keys comparaison
- javascript class constructor
- javascript var and let
- javascript append how first element
- javscript send ajax request only if submit is valid
- react time picker
- how to query in windows js
- json_extract in non native query
- javascript arrays codeburst
- jstl tag
- check a checkbox jquery
- mdn select event
- custom font in react native
- isfunction javascript
- jQuery check element has focus
- cypress upload file