Friday, 23 November 2012

frameset and iframe example

-------------- frameset------------------------------------- <FRAMESET cols="20,80" border="0"> <FRAME SRC="Mypage.html" ></FRAME> <FRAME SRC="page1.html" NAME="kmit"></FRAME> </FRAMESET> -----------------------Mypage.html------------------------------------- <HTML> <HEAD> <TITLE> menu</TITLE> </HEAD> <BODY > <h1>menu</h1> <a href="page1.html" target="kmit">AboutUs</a><br> <a href="page2.html" target="kmit">Home</a><br> <a href="page3.html" target="kmit">ContactUs</a><br> </BODY> </HTML> ------------------------page1.html------------------ <HTML> <HEAD> <TITLE>page1</TITLE> </HEAD> <BODY bgcolor=#00FFFF> <h1> About Us</h1> </BODY> </HTML> -------------------------page2.html------------ <HTML> <HEAD> <TITLE> page2</TITLE> </HEAD> <BODY bgcolor=#FFFF66> <h1> Home</h1> </BODY> </HTML> ------------------------page3.html--------------- <HTML> <HEAD> <TITLE>page3</TITLE> </HEAD> <BODY bgcolor=#99FF00> <h1> Contact Us</h1> </BODY> </HTML> -------------- iframe--------------------------- <HTML> <HEAD> <TITLE>iframe</TITLE> </HEAD> <BODY> <h1>Hi welcome to kmit</h1> <iframe src="page1.html" width="200" height="200" name="kmit">page1.html</iframe> <p> <a href="page2.html" target="kmit">page2.html</a></p> </BODY> </HTML> -----------------------------------------------------------

No comments:

Post a Comment