Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 4. Frames > Frame Border Attributes - Pg. 85

_parent The _parent target causes the document to load into the parent window or frameset containing the frame containing the hypertext reference. If the refer- ence is in a window or top-level frame, it is equivalent to the target _self . _top This target causes the document to load into the window containing the hy- pertext link, replacing any frames currently displayed in the window. Frame Border Attributes Internet Explorer and Netscape Navigator both support tags that adjust the style of the borders that surround frames. Although they have the same functions, the at- tributes are slightly different for each browser. Netscape uses the frameborder attribute to toggle between 3D borders and simple rules for borders. The default is to use 3D borders; a value of no gives simple borders. This attribute can be placed in either the <frameset> tag or in a <frame> tag. A setting in an individual <frame> overrides an outer <frameset> setting. Frames You can also set the color of the borders in both <frameset> and <frame> with the bordercolor attribute. In the <frameset> tag, you can set the width of the borders in a whole frameset with the border attribute. The default width is 5 pixels. To achieve borderless frames in Netscape, set border=0 and frameborder=no . Internet Explorer does all the same things, only with different attributes. It also uses frameborder in the <frameset> and <frame> tags, but the values are 1 for 3D borders and 0 for simple ones. In the <frameset> tag, you can set the amount of space between frames with the framespacing attribute. By setting framespacing=0 and framebor der=0 , you can achieve borderless frames. Another feature in Internet Explorer is the floating frame. This has all the abilities that a regular frame does, but it is placed within a document like an <img> would be. The tag for a floating frame is <iframe> , and it requires a closing tag. The attributes include all of the regular <frame> attributes, and the sizing, alignment, and placement attributes of <img> . Frame Border Attributes | 85