In Association with Amazon.in   Flipkart

Saturday, December 1, 2012

HTML Frameset And Frame Tags

HTML Frames:
Frames used to Open multiple html pages in a single browser window.
Frames should not be written in <body>

Example
<html>
        <head> 
        </head>
        <frameset rows="20%,50%,30%">
        <frame src="a.html">
        <frame src="b.html">
        <frame src="c.html">
        </frameset>
</html>

Example
<html>
        <head>   
        </head>
        <frameset rows="50%,50%">
        <frame src="a.html" noresize="noresize">
                <frameset cols="50%,50%">
                <frame src="b.html">
                <frame src="c.html">
                </frameset>
        </frameset>
</html>

Note : If the browser is not supporting frames then  <noframes> will Execute.

 <noframes>
        <body>
        <p> Upgrade your browser to see this information </p>
        </body>
</noframes>


Frame Target :
<html>
        <head>    
        </head>
        <frameset cols="50%,50%">
                <frame src="links.html">
                <frame src="c.html" name="abc">
        </frameset>     
</html>

Links.html
<html>
        <head>     
        </head>
        <body>
                <a href="a.html" target="abc"> Page A </a> <br>
                <a href="b.html" target="abc"> Page B </a>
        </body>       
</html>

No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...