
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to redirect website after certain amount of time without JavaScript?
To redirect from an HTML page, use the META Tag. With this, use the http-equiv attribute to provide an HTTP header for the value of the content attribute. The value of the content is the number of seconds; you want the page to redirect after.
Through this, you can automatically redirect your visitors to a new homepage. Set the content attribute to 0, if you want it to load immediately.
Example
The following is an example of redirecting current page to another page after 2 seconds.
<!DOCTYPE html> <html> <head> <title>Redirection</title> <meta http-equiv = "refresh" content = "2; url = https://www.tutorialspoint.com" /> </head> <body> <p>This page will redirect in 2 seconds.</p> </body> </html>
- Related Articles
- How to redirect URL to the different website after few seconds?
- How to use JavaScript to redirect a webpage after 5 seconds?
- How to create a website without using HTML?
- Automatically close window after a certain time in Tkinter
- How to Automatically Save and Close an Excel File after a Certain Idle Time?
- How to redirect to another webpage using JavaScript?
- How to redirect to another webpage with JavaScript?
- Reversing array without changing the position of certain elements JavaScript
- How to use JavaScript to redirect an HTML page?
- How to compare only date part without comparing time in JavaScript?
- How to clear the form after submitting in Javascript without using reset?
- How to make a setInterval() stop after some time or after a number of actions in JavaScript?
- JavaScript - Redirect a URL
- How to use the map function to see if a time is in a certain time frame with JavaScript?
- How to reduce MongoDB storage space after deleting large amount of data?

Advertisements