div works but how to add redirect to particular url after disappeared?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqaspuri
    New Member
    • Jun 2013
    • 4

    div works but how to add redirect to particular url after disappeared?

    div disappear works and perfect .. but I have an issue, how to make it redirect to the particular url when it is disappeared ... response with the proper code that should work

    FUNCTON OF THE SCRIPT: DISAPPEAR DIV AFTER SOME TIME BUT IT DOES NOT REDIRECTS,

    Code:
    <script type="text/javascript">
    // close the div in 5 secs
    window.setTimeout("closeHelpDiv();", 5000);
    
    function closeHelpDiv(){
    document.getElementById("helpdiv").style.display="none";
    }
    </script>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    DISAPPEAR DIV AFTER SOME TIME BUT IT DOES NOT REDIRECTS,
    why should it redirect? <div>s are not links. and there is nothing in your code to provide that functionality.

    Comment

    • waqaspuri
      New Member
      • Jun 2013
      • 4

      #3
      Hm. Is there anything that is appear for once .. ?? each time page is refresh it show the DIV again .. ?

      Comment

      Working...