Hello!
I'm currently developing a page which has 3 frames.
The thing I'd like to do is:
When one page loads in one frame, it changes page in second frame. How can I do this in JScript?
Hope anyone knows.
Printable View
Hello!
I'm currently developing a page which has 3 frames.
The thing I'd like to do is:
When one page loads in one frame, it changes page in second frame. How can I do this in JScript?
Hope anyone knows.
Hi,
I am not sure what are you trying to do. Are you trying to load two pages in two frames with one click, or do you want to redirect to a page/url when a frame is loaded.
If you want to change/load two pages in two different frames with one click, here is the code.
Assuming that you have 3 frames the are named as 'main', 'right' and 'menu'.
Now from the menu page you can use this script to load two frames with one click.
<a href=javascript:two()> Click Here</a>
------------------------------------------------------
function two() {
parent.main.location.href= 'first.htm';
parent.right.location.href= 'second.htm';
}
------------------------------------------------
Hope this helps