![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 29
Rep Power: 0
![]() |
How can I change .asp page of frame after every 5-10 minutes ?
How can I change .asp page of frame after every 5-10 minutes ?
I am wondering if there is some way I can change .asp page of a frome after 5-10 minutes thr' scriptiong/coding automatically. Let me tell you that I am new to ASP. =Sham |
|
|
|
|
|
#2 |
|
Expert Programmer
|
I'm assuming you mean frames as in an HTML frameset.
That can be done in several ways. The first and the most widely supported is to specify the Refresh field in the HTTP header. I'm not sure exactly how you'd do this in ASP, but what you're aiming for is to add: Refreh: n; url=http://www.google.com/ The next way is to use the meta equivalent actually in the page source: <meta http-equiv="refresh" content="n;url=http://www.google.com/"> You could also us javascript, so: <script type="text/javascript">
<!--
function doredirect() {
location.href='http://www.google.com';
}
setTimeout('doredirect();',m);
//-->
</script>Hope this helps. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|