...

View Full Version : Javascript issue with Firefox



arrosen
08-02-2006, 06:18 AM
I have a website that has a link that changes the content of an iframe. It works perfectly in IE (6 & 7) and Opera, but doesn't work in Firefox.

Here is the link:
<a href="#null" onClick="document.frames['MainFrame'].location.href='flash.php?f=Fallview';">View Slide Show</a>

I also happen to have a navigation iframe (on that same page) where I have similar code but it is "parent.frames['..." . This link works fine in both IE and Firefox.


Any ideas?

The website is http://www.fallviewroad.com

Thanks

glenngv
08-02-2006, 06:22 AM
<a href="#null" onClick="window.frames['MainFrame'].location.href='flash.php?f=Fallview'; return false;">View Slide Show</a>

But you can also do it without scripting.

<a href="flash.php?f=Fallview" target="MainFrame">View Slide Show</a>

arrosen
08-02-2006, 06:42 AM
I've been staring at that code for hours...sometimes it just needs a fresh pair of eyes:thumbsup:


Thanks SOOOOOOO much!!:D :D :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum