To change a frame’s content, you must be able to target a frame. To do so, you must use the name attribute to uniquely identify your frames. You can then use those names in scripts and anchor tags to direct new content to the frame.
Drag border to new position
Dragging the curser resizes the frames accordingly.
You can use similar methods and properties to otherwise manipulate the frame content and properties.
When you use the frameset DTD, the anchor tag (<a>) supports the target attribute, which can be used to target a frame for content. The target attribute supports the various values.
Note: To understand the difference between the _parent and _top values of the target attribute, you need to understand nested frames. Nested frames are covered in the next section. The easiest way to direct content to a frame is to use the frame’s name in the target attribute of an anchor.
This technique is often used to control one frame independently from another, especially where one frame has a navigation control and the other displays variable content. For example, the following code provides a handful of navigation links in the left (nav) frame, and the content is displayed in the right (content) frame. what this code looks like in a browser.
(Only home.html is shown in the following code—other content pages would look similar.)
A simple frame-based navigation scheme. When the user clicks a link in the left frame, the content changes in the right frame. frameset.html
HTML Related Interview Questions
|XML Interview Questions||HTML 4 Interview Questions|
|HTML Interview Questions||HTML 5 Interview Questions|
|HTML DOM Interview Questions||Java Interview Questions|
|CSS Interview Questions||Java Abstraction Interview Questions|
|Dynamic HTML Interview Questions||XHTML Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.