Link to home
Start Free TrialLog in
Avatar of antonms
antonms

asked on

top.frames - IE vs FF vs Chrome

Hi
The following js function is used to handle our load reports page event in a web app…

function loadReports(){
    top.frames["ifrMain"].document.location = "Reports.aspx";
}

It works perfectly on IE and Chrome, however when the web app is ran in Firefox 14.01 this error occurs…
TypeError: top.frames.ifrMain is undefined
http://localhost:53427/js/Sidebar.js

We have ran Firefox in Safemode, disabled all plug ins, tried it on other FF installations etc but the problem remains.

Can anyone help as its proving rather tricky to find a solution that works on all three browsers.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Graham N.
Graham N.
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of antonms
antonms

ASKER

Hi - including the NAME tag as you suggested worked just fine in FireFox. Thanks