Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

manipulating frames

 
naveen rajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on click of a link in one frame how do i change the contents the same frame and a different frame at one time.
 
Brian Glodde
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use javascript to load both frames:
<script language="JavaScript" type="text/javascript">
function load(url1, url2)
{
top.frames['frame1name'].location.href=url1;
top.frames['frame2name'].location.href=url2;
}
</script>
Then call it like this:
<a href="javascript:void(0);" onclick="load('somepage.htm','someotherpage.htm');">do now</a>
Frames can also be referred to ordinally.
Hopefully that will help to solve the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic