I am developing a project in Java.
I want to start with a welcome page where I put a syntax of page redirecting. But, I want to display welcome page, 2 seconds and then redirect it.
What should be syntax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a meta refresh tag (
urlvalue can be either relative or absolute):Another option would be to use a JavaScript timeout and change the value of
window.locationto the desired address (this can be relative or absolute as well). Use an event handler to do this when the page has loaded, or put something like this right before you close your<body>tag: