Page 1 of 1

One Link changes Two Iframes

Posted: Sun Jun 15, 2008 12:12 am
by kees
This article describes how one Link can change the contents of two Inline Frames. The link can be a text link, an image link, a menu link, in short: any type of link.

1. Bring up the Page HTML dialog, select Between Head Tag and insert::

Code: Select all

<script type="text/javascript"> 
function change_frames(url1,url2) {
  window.open(url1,'InlineFrame1');
  window.open(url2,'InlineFrame2');
}
</script>
'InlineFrame1' and 'InlineFrame2' are the default names. Please change these Iframe names to your situation.

2. Bring up the concerning Link dialog and change it to:
- Link to: Web Site
- URL: javascript:change_frames('page3.html','page4.html')
- Target: Open in the same browser window

'page3.html' and 'page4.html' are fancy pages. Please change these Page names to your situation.

Download the example here.

Posted: Tue Jun 23, 2009 9:07 pm
by bry
Thank you Kees. That is interesting. I never would have thought of that.

thanks again!