Jump to content

Framesets in Firefox


dickey38
 Share

Recommended Posts

I have javascript code related to a Frameset that works fine in IE but not in Firefox.Frameset Code: var wstg wstg = '<frameset rows="50px,*"> ' + ' <frame noresize="noresize" frameborder=0 id="sitehead" src="UGhead.htm" >' + ' <frameset cols="158px,*">' + ' <frame noresize="noresize" style= "border-right-width:thick; border-right-color:Maroon;" id="contents" src="UGnav.htm" />' + ' <frameset rows="30px,*">' + ' <frame frameborder=0 id="mainhd" marginheight="3" marginwidth="8" src= "Helphead.htm" />' + ' <frame frameborder=0 id="main" src= "HelpContent.htm" />' + ' </frameset>'self.document.write(wstg)In JS functions I use code like: function loadhupd() { top.main.location.href = "AAHelpUpd.htm"; top.mainhd.location.href = "HelpUpdHead.htm"; }Works fine in IE, but Firefox claims that top.main is not defined. Apparantly the id="main" specified with the frame in the frameset isn't sufficient to define "main".Thanks for help.

Link to comment
Share on other sites

Try using the name attribute instead of the id attribute. This is very old syntax and predates the existence of id's.
What is the preferred javascript syntax for loading a document into a frame?Thanks.
Link to comment
Share on other sites

Try using the name attribute instead of the id attribute. This is very old syntax and predates the existence of id's.
Using name attribute does work. Thanks!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...