How To Redirect From A HTML Page
Here we consider How To Redirect From A HTML Page.
Lets consider both in detail.
We can use HTML meta Refresh as follows.
The above code should be placed on the head section.
Here content = 0 means to refresh the page after 0 seconds.
Give the user some more time before redirection by increasing the value.
But use of meta refresh is discouraged by the World Wide Web Consortium (W3C).
Best two ways are given below.
The best preferred will be window.location.replace
This is because, window.location.replace simulates the HTTP Redirect absolutely.