•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 401,670 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,532 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 4576 | Replies: 1
![]() |
•
•
Join Date: Mar 2005
Location: LTT, South Africa
Posts: 125
Reputation:
Rep Power: 4
Solved Threads: 1
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
url = "http://www.daniweb.com";
</SCRIPT>
<BODY>
<A HREF="#" onClick="setTimeout('window.location = url', 5000);">Some Link</A>
</BODY>
</HTML>This should effectively delay the page change by 5 seconds. If you want to change the number, it is in milliseconds, so 1 second is 1000. Also, all you have to do is change the variable url, in the header portion of the page to whatever you want your page redirected to.
In order to do a refresh... you can just the url variable to whatever page you want to refresh. If I'm not mistaken (which I could be) there should be a reload() function that you could use intead of the window.location, but not 100% that it is cross-browser compliant.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- IE6 open a BlanK Page if a link is clicked or open in a new window is selected (Web Browsers)
- Hijack This log for Buffer Overrun error.. (Viruses, Spyware and other Nasties)
- cant acess some websites and some programs wont connect to the net. (Viruses, Spyware and other Nasties)
- Redirect Problem (Please Help) (Viruses, Spyware and other Nasties)
- Autosize iframe not refreshing to top of page. (HTML and CSS)
- How to get the link that was clicked even after the page gets refreshed (JSP)
- How to get the link that was clicked even after the page gets refreshed (JavaScript / DHTML / AJAX)
- Phas: IE 6 Can't open new windows from link clicked (Web Browsers)
Other Threads in the HTML and CSS Forum
- Previous Thread: Safe Menu's ?
- Next Thread: Function call problem



Linear Mode