Frames.html
<!DOCTYPE html> <html> <frameset cols="25%,*,25%"> <frame src="frame_a.html" name="frame_a"> <frame src="frame_b.html" name="frame_b"> <frame src="frame_c.html" name="frame_c"> </frameset> </html>
10:04 PM 0 Comments
<!DOCTYPE html> <html> <frameset cols="25%,*,25%"> <frame src="frame_a.html" name="frame_a"> <frame src="frame_b.html" name="frame_b"> <frame src="frame_c.html" name="frame_c"> </frameset> </html>
10:04 PM 0 Comments
<html> <head> <style> #mycolor1 {color: blue;} .mycolor2 {color: blue;} .textbox{background-color:yellow} </style> <div style="background-color:yellow;text-align:center"><h2>Frame 1 </h2></div> </head> <body bgcolor="blue"> <center><input type="text" value="Iam in Frame1" id="Frame1txt" /></center> </body> </html>
10:04 PM 0 Comments
<html> <head> <style> #mycolor1 {color: blue;} .mycolor2 {color: blue;} .textbox{background-color:yellow} </style> <div style="background-color:red;text-align:center"><h2>Frame 3 </h2></div> </head> <body bgcolor="purple"> <center><input type="text" value="Iam in Frame3" id="Frame3txt" /></center> </body> </html>
9:49 PM 0 Comments
<!DOCTYPE html> <html> <frameset cols="25%,*,25%"> <frame src="frame_a.html" name="frame_a"> <frame src="frame_b.html" name="frame_b"> <frame src="frame_c.html" name="frame_c"> </frameset> </html>But in the case of iframe its totally different. No properties defined for iframe then how do we switch???
<!DOCTYPE html> <html> <body> <iframe width="100%" height="300px" src="iframedemo.htm"> </iframe> </body> </html>To understand this better check the page source of the html file "iframedemo.htm". It contains one textbox box named "frame1txt".
<html> <body style="background-color:#F5DEB3"> <h1>This page is displayed in an iframe</h1> Username:<input type="text" name="frame1txt" id="frame1txt"> </body> </html>Download the html source code from these links:
12:55 AM 28 Comments
11:46 PM 1 Comments
1:12 AM 0 Comments
2:09 AM 1 Comments
12:12 AM 1 Comments
© Copyright 2014 Gain Knowledge!! |
0 comments:
Post a Comment