One Link changes Two Iframes
Posted: Sun Jun 15, 2008 12:12 am
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::
'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.
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>
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.