Wait before a redirect

Results 1 to 3 of 3

Thread: Wait before a redirect

  1. #1
    Join Date
    Dec 1969

    Default Wait before a redirect

    How do I wait (and show the current page) for x seconds, then redirect to another page? I&#039ve got the redirect part down, I just don&#039t know the waiting part. Thanks in Advance.<BR>Bill

  2. #2
    Sathiya Guest

    Default RE: Wait before a redirect

    &#060;Script lang="javascript"&#062;<BR>function Redirect()<BR>{<BR> top.location.href= "something.asp";<BR>}<BR>function DelayRedirect()<BR>{<BR> window.setTimeout("Redirect();", 1000);<BR>}<BR>&#060;/script&#062;<BR>Call the DelayRedirect when you want to redirect it will give you a delay, and it will invoke redirect function which will redirect to specific page. try and see.

  3. #3
    Join Date
    Dec 1969

    Default Thanks!

    Thanks for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts