Sometimes we jump to a page to complete the task, and then return to the original page. This can be seen on many download websites. This is also done to retain users.
This timing function is easy to implement using javascript.
window.setTimeout(code,time) // code is the code executed and time is set.
Copy the code code as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Javascript automatically jumps</title>
<script type="text/javascript">
function redrect()
{
window.location = "1.html";
}
window.setTimeout(redrect,3000);//Jump function
</script>
</head>
<body>
<h4 style="color:#F00">This is the jump page....</h4>
</body>
</html>