Forum Moderators: open
I forgot how to use frames , although i started like everyone using the same
Here is what i want to do
I want to see a website page constantly as it is updated for example lets say our RECENT POSTS in WebmasterWorld ( i know it refresh but lets say it doesnt )
I want to make local webpage on my computer which will have two frames
Top frame will have . WebmasterWorld recent threads
and bottom frame will have the latest threads page which will update automatically after some time
How do i make this using frames?
Thanks
It's been some time since I've worked with frames in conjunction with JavaScript but you could do one of two things.
You can either automatically load a page via a function or you could have the user trigger trigger the function.
var myTimeout;function timedchange(id, newClass)
{
myTimeout = window.setTimeout(function() {parent.main.location.href = file.html;}, 400);
}
parent.main is a reference to a frame named 'main'.
<frame name="main"
...in example.
You can put this inside of an onload function or call the function on an action such as <element onaction="myTimeout;".
Hope this helps.
- John