Jump to content

Framesets in Firefox


dickey38

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...