Exit console and url forwarding...??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kamilla36D
    Confirmed User
    • Jan 2002
    • 605

    #1

    Exit console and url forwarding...??

    I have a index page with a single exit console. However, I would like to add a timed forwarding but without triggering the exit console like you would with a link onClick="exit=false". Is this possible?

    Thanks, Kamilla
    YourSearchNow.com
    Advertise 1c/click - 60% affiliate program - unique exit link program
    ClickForWebmasters.com Amateur niche toplists, PicPost and Resource
  • naughtyhand
    Registered User
    • Jan 2004
    • 1

    #2
    Just put the code bellow in the head section of your page and add the onload event in the body tag. The number in the setTimeout is in milliseconds: 2000 is for 2 seconds before redirect.

    Code:
    &lt;HEAD&gt;<br>
    &lt;SCRIPT language=&quot;J_a_v_a_s_c_r_i_p_t&quot;&gt;<br>
    &lt;!--hide<br>
    function redirect()<br>
    {<br>
      exit=false;<br>
      location.href = 'url_where_to_go.htm';<br>
    }<br>
    //--&gt;<br>
    &lt;/SCRIPT&gt;<br>
    &lt;/HEAD&gt;<br>
    &lt;BODY o_n_l_o_a_d=&quot;setTimeout('redirect()',2000)&quot;&gt;<br>
      ...your stuff...<br>
    &lt;/BODY&gt;</p>
    Remove the underscore "_" from J_a_v_a_s_c_r_i_p_t and o_n_l_o_a_d (I guess I'll have to look into vB manual )

    Hope it helps.

    Comment

    • Kamilla36D
      Confirmed User
      • Jan 2002
      • 605

      #3
      Great - thank you so much for posting

      kisses, Kamilla
      YourSearchNow.com
      Advertise 1c/click - 60% affiliate program - unique exit link program
      ClickForWebmasters.com Amateur niche toplists, PicPost and Resource

      Comment

      Working...