Click to See Complete Forum and Search --> : iframe problem in FF


karayan
01-04-2006, 01:25 AM
I'm trying to load a document in an iframe thru Javascript. I used something like:

document.blabla.document.location='http://.........';

where blabla is the name of my iframe. This works fine on IE, but FF tells me that document.blabla has no properties. What's wrong?

Thanks.

Kor
01-04-2006, 02:51 AM
location is a window's object, not document's:

try:
document.frames['blabla'].location.href='http://.........'
or
document.getElementsByName('blabla')[0].setAttribute('src','http://.........')
or
document.getElementsByName('blabla')[0].contentWindow.location.href='http://.........'