In the html page how do we display a sub window ?

 Posted by Vivek.Ramapuram on 8/5/2014 | Category: HTML 5 Interview questions | Views: 1642 | Points: 40

In case we want to display a sub-window we should use iframe.
In this iframe describes aboutWidth and Height properties of the iframe and is used to specify the width and height of the sub window. Src property is used to specify the html page that should be displayed in the sub window. frame1.htm

Note:we should write this code with in the body

iframe.htm(main page)

<p>This text is in the main page.</p>
<iframe src="frame1.htm" width="500" height="200" frameborder="0"></iframe>
<p>This text is in the main page.</p>

<body style="background-color:yellow">
<p>This text is in iframe page</p>

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response