views:

65

answers:

1

For some reason, this very basic page shows up fine in Chrome, but not FireFox or IE. I've never really needed to use Frames before, but they seem simple enough. Is there a problem with using a single frame within a frameset? I am trying to replace an iFrame with this single frame.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"&gt; 
<html>
    <head>
    </head>
    <body>
    <frameset cols="*">
      <frame id="aqFrameSlider" src="http://www.alphacommunications.com/alphaquote/index.php?account=J2001&amp;hash=GISDFGSP43HAJ49FH92JSPKJ"&gt;
    </frameset>   
  </body>
</html>
+2  A: 

Remove <body> and close <frame> properly:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"&gt; 
<html>
    <head>
    </head>
    <frameset cols="*">
      <frame id="aqFrameSlider" src="http://www.alphacommunications.com/alphaquote/index.php?account=J2001&amp;hash=GISP43HAJ49FH92JSPKJ"&gt;&lt;/frame&gt;
    </frameset>
</html>

The next time, you should validate your document first, that would notice this error.

Lekensteyn
Oh... <frameset> replaces <body>. Gotcha.
Dutchie432