How do I target two frames with a singel click?
Printable View
How do I target two frames with a singel click?
how about an example of what you mean?
:)
Try this, if this is what you are talking about.
Code:<frameset cols="20%, 80%">
<frame src="page1.html" name="nav">
<frame src="page2.html" name="main">
</frameset>
<script>
function go(url1, url2)
{
parent.nav.location.href = url1;
parent.main.location.href = url2;
}
<script>
<a href="javascript:go('page3.html','page4.html')">Change Pages</a>