Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
Count down then redirect to new page (Javascript code)
Results 1 to 1 of 1

Thread: Count down then redirect to new page (Javascript code)

  1. #1
    Senior Member ghaza's Avatar
    Join Date
    Oct 2013
    Multan, Pakistan
    ΑΡ Credit

    Count down then redirect to new page (Javascript code)

    Occasionally, you may wish to have a redirect page that pauses for a few seconds before sending the visitor off to the destination. For example, there may be important text on the redirect page you wish the visitor to get a chance to read, or a banner ad to see.before proceeding. This redirect script understands that, and pauses for any given seconds before navigating to the target page!

    HTML Code:
    <form name="redirect">
    <font face="Arial"><b>You will be redirected to the script in<br><br>
    <input type="text" size="3" name="redirect2">
    //change below target URL to your own
    var targetURL="http://adminspoint.com"
    //change the second to start counting down from
    var countdownfrom=10
    var currentsecond=document.redirect.redirect2.value=countdownfrom+1
    function countredirect(){
    if (currentsecond!=1){
    for Demo see attachment file below
    Attached Files Attached Files
    Last edited by ghaza; 11-10-2013 at 02:02 AM.

Similar Threads

  1. I need a code (html, javascript) for a list having ...
    By B.Ali in forum Website Templates
    Replies: 5
    Last Post: 11-08-2013, 04:11 PM
  2. The URL Redirect Usage
    By jadensteele152 in forum Google
    Replies: 0
    Last Post: 11-23-2011, 12:40 AM
  3. Meta Redirect
    By Seanlopez in forum htaccess
    Replies: 1
    Last Post: 07-11-2010, 11:24 AM
  4. Replies: 1
    Last Post: 07-11-2010, 04:59 AM
  5. Replies: 1
    Last Post: 07-11-2010, 04:57 AM

Posting Permissions

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