Redirect after a time in Javascript

<html>
<head>
<script type="text/javascript">
function Redirect() {
window.location="http://www.coding4developers.com";
}

document.write("You will be redirected to main page in 10 sec.");
setTimeout('Redirect()', 10000);
</script>

</head>
<body>
</body>
</html>

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *