...

View Full Version : i need this line of javascript to work in NS6



hypedup.co.uk
07-20-2002, 08:22 PM
the following line of javascript only works in IE. what do i need to write to get it to work in NS6 as well?

document.frames['iframe_name'].location.href="xxx";

thanks, paul

BrainJar
07-20-2002, 10:21 PM
First, put an id on the IFRAME tag:

<iframe id="myIframe" ...></iframe>

Then you can use:

document.getElementById('myIframe').src = 'page.html'



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum