Archive for November, 2015

JQuery Redirect to Another Page After Some Time Delay in

November 13, 2015 Leave a comment

Hi all,

Try this example to Use jQuery Redirect to Another Page after Some Time Delay in

<html xmlns="">
<head runat="server">
<title>JavaScript redirect to another page after 5 seconds or Sometime</title>
<script type="text/javascript" src="">
<script type="text/javascript">
var i = 0;
$(document).ready(function() {
function ShowCurrentTime() {
var dt = new Date();
document.getElementById("lblTime").innerHTML = 5 - i + " Seconds";
if (i == 5) {
setTimeout("location.href=''", 0);
window.setTimeout("ShowCurrentTime()", 1000);
<form id="form1" runat="server">
This Page will Redirec to Another Page within:
<label id="lblTime" style=" font-weight:bold; font-size:12pt"></label>

Hope this helps

Good Luck.

Categories: ASP.Net, Jquery