Use a frameset with other HTML elements on the page

I have a page in which I want to include a set of frames, as well as use other HTML elements (basically some hidden form fields). But where can I place these additional HTML elements in the code?

<frameset cols="*" rows="40,*"> <frame src="#" /> <frame src="#"/> <noframes> <body> Please enable frames to view. </body> </noframes> </frameset> 
+4
source share
4 answers

A standard web page has the following layout:

 <html> <head> <title>Simple html document</title> <!-- Headers here --> </head> <body> <!-- Body here --> </body> </html> 

A frameset document has a head and frameset instead of a body .

 <html> <head> <!-- Headers here --> </head> <frameset cols="20%, 80%"> <frameset rows="100, 200"> <frame src="contents_of_frame1.html"> <frame src="contents_of_frame2.gif"> </frameset> <frame src="contents_of_frame3.html"> <noframes> <p>This frameset document contains:</p> <ul> <li><A href="contents_of_frame1.html">Some neat contents</A> <li><IMG src="contents_of_frame2.gif" alt="A neat image"> <li><A href="contents_of_frame3.html">Some other neat contents</A> </ul> </noframes> </frameset> </html> 

So, if you want to include some html elements, you must include it in one of the frames. Or simply add one additional frame that will not take place and include the html elements (hidden input fields) in it.
On the other hand, if you want these html elements if the browser does not support a set of frames, or if they are disabled, add them also in <noframes> .

+2
source

I once broke up with a girl because she used <frameset> ...

+4
source

Frames are the 90s :) Do you really have a good reason to use them? :) There are many reasons to avoid them ...

In any case, each frame has its own life, so it depends on which frame performs the wiring. If you put them in frame X, you will need to make wiring from this frame, and the rest will remain in their state, not affected.

0
source

Either use an <iframe> to place the document with an <frameset> inside, or use an <iframe> for each of your framed documents.

0
source

All Articles