By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,255 Members | 2,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,255 IT Pros & Developers. It's quick & easy.

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

P: 4
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,

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. // close the div in 5 secs
  3. window.setTimeout("closeHelpDiv();", 5000);
  4.  
  5. function closeHelpDiv(){
  6. document.getElementById("helpdiv").style.display="none";
  7. }
  8. </script>
Jun 20 '13 #1

✓ answered by Dormilich

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.

Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
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.
Jun 20 '13 #2

P: 4
Hm. Is there anything that is appear for once .. ?? each time page is refresh it show the DIV again .. ?
Jun 21 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.