...

View Full Version : loading content



beardie
01-17-2005, 10:43 PM
hi im trying to load content into 2 iframes using only one url, tried a few different approaches and just cant get the dam thing working, some guidance would be great. im a bit of a newbie at javascript too.
the framepage is
http://www.impactrecords.co.uk/index2.html

Kor
01-18-2005, 08:07 AM
Try


<a href="#" onclick="window.open('page1.html','iframe1name');window.open('page2.html','ifram2name');return false">blahblah</a>

glenngv
01-18-2005, 08:12 AM
Or:

<a href="page1.html" target="iframe1name" onclick="window.open('page2.html', 'iframe2name')">blahblah</a>

Kor
01-18-2005, 08:15 AM
aha, you've removed return false on second edit... :D

Kor
01-18-2005, 08:19 AM
or:

<a href="#" onclick="top.frames['iframe1name'].location.href='page1.html';top.frames['iframe2name'].location.href='page2.html';return false">blahblah</a>

beardie
01-18-2005, 07:53 PM
very much appreciated guys, it works perfectly

thank you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum