How is a frame accessed from other frames?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
How is a frame accessed from other frames?
Rating:
The browser window that is opened is a single frame window, which can display only one HTML page. To display multiple HTML pages in a single window, the window is divided into multiple frames. Each frame can be considered as a separate window. The src attribute of the frame tag sets the URL of the HTML file for a particular frame.
The following syntax will create a frame:
<frame src="URL of an html file">
<frame src="URL of an html file">
</frameset>
Frames can be accessed by other frames by using the parent or top object.
For example:
top.frames[framenumber]
parent.framename
parent.frames[framenumber]
Rating:
Was this information helpful?
Other articles
- What is the multiply-by-value operator?
- How to use the getElementById() method?
- What is the delete operator?
- What is the location object?
- What is the Image object?
