http://stackoverflow...-specified-time
I'm trying to redirect to another page after a second has passed. (I am starting to count when the document has loaded).
I cannot seem to spot the problem in this code, any help you could give me would be appreciated :
<body>
<p>Login Failed!</p>
<p>Redirecting you back to the login screen.</p>
<p>Reason: Incorrect Password or Username.</p>
<script src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.5.js" type="text/javascript">
$(document).ready(function () {
var delay = 1000; //Your delay in milliseconds
setTimeout(function(){ window.location.href = "LoginPage.cshtml"; }, delay);
});
</script>
</body>

New Topic/Question
Reply


MultiQuote


|