The code below explores these attributes in more detail:
<HTML> <HEAD><TITLE>My third framed page</TITLE> </HEAD> <FRAMESET COLS="20%, 80%" FRAMEBORDER="YES" BORDER="3"> <FRAME SRC="menu.html" NOSIZE SCROLLING="YES" NAME="menuframe" MARGINWIDTH="0" MARGINHEIGHT="5"> <FRAME SRC="main.html" NORESIZE SCROLLING="AUTO" NAME="mainframe"> </FRAMESET> <NOFRAMES> There is no frame support on your browser. </NOFRAMES> </HTML>
We’ll name this file frames3.html. You can test it by click here.
Though a border is displayed between frames you will not be able to drag it and resize the frames. This is because of NORESIZE attribute. (You can resize frames in frames.html).
The two frames now have names, the left is called menuframe while the right mainframe.
We have specified ‘YES’ as the value for SCROLLING attribute of menuframe, so a scroll bar is displayed.
MARGINHEIGHT attribute in menuframe puts a 5 pixel space between the top and bottom edges and the contents. MARGINHEIGHT with 0 value causes the contents of menuframe to be placed sticking to the left edge.
SCROLLING for mainframe has been set to AUTO, which places the decision of putting scroll bars on the browser. In our case, these bars are not required, hence not displayed.
IMDB.com was bought by Amazon.com in 1998 to be used as an advertising resource to sell movies. [more...]