FREQUENTLY
ASKED
QUESTIONS

Q: How do you remove borders?
A: Include border="0" within the opening frameset tag. HTML 4.01 has dropped border control from the frameset tag as an attribute although most current browsers continue to support this feature. Should the browsers adhere to W3C on this one, we could see volumes of web pages in disarray.
Q: How do you bookmark a frame document?
A: Click and hold in the frame you wish to bookmark. Then select "New Window with this Frame". The location bar now displays the URL for the selected frame. Bookmark and then close the new window to return to the frameset.
Q: How do you break out of frames?
A: Add an anchor (link) that includes target="_top" within the tag set. Example, <a href="xyz.html" target="_top">Leave Frames</a> Of course, the xyz.html document must be a non-frames version.
Q: The content of my frame has text with clear left and right margins. It still displays a horizontal scroll bar when scrolling is set to "auto". Why?
A: Apparently the combined width of your borders and text area exceeds the width specified in your frameset layout. Suggest you consider using a table layout with one row and three cells within the html document for this frame. Set the width of the left and right cells to 30 and set the width of the center cell to 300. Insert only a break tag (<br>) between the opening and closing cell tags. With <table border=1> you can see the boundaries of the margins and text area. Adjust the numbers to contain the table border within the frame window and the horizontal scroll bar will not be visible. Insert your text into the center cell. Setting border=0 will remove the borders.
Q: How can I link to a specific area of a targeted frame document?
A: Add named anchors to areas within the targeted document (i.e.,<a name="gohere"></a>) When you target this area from another Web page, in addition to the URL or file name, add a pound sign (#) and the name of the anchor. Example, <a href="mainframe.html#gohere" target="main">Go Here</a> This tells the browser to go the named document, drill down to the anchor name and display it in the targeted frame.
Q: How can I link to an external URL and display it in a full window without exiting my frameset?
A: Include target="_blank" within the anchor for the linked document. It will open in a "new" browser window that is layered over your frameset. When the "new" window is closed the visitor is back to the frameset.
Q: My frames page is ok on IE (Internet Explorer) but it's a blank page on Netscape. Why?
A: Several have reported this problem and all had failed to include a closing </frameset> tag for each one they opened.
Q: I make changes to my frameset and/or files but when I do a "refresh" they don't show up. Why?
A: At least in the Netscape browser I've found this to be a frequent problem. Whenever this happens and I know darn well I made a change, I go to the "file" menu and do an "open file". Wala, there it is! Who says these computers don't have a mind of their own?
PS On a few occassions, I've had to *close* the browser and *empty* the browser cache to prevent the retrieving of an older file. :-(

New information for Netscape users: Hold down the Shift or Option key while pressing the "REFRESH" button. For IE you may need to hold down the Shift or Alt key.

Q: Mike, what are common errors that can result in failed code?
A: The omission of a closing quotation mark (") can play havoc and omission of closing table tags can be a problem. I'm sure there are others. Any comments?
Q: How can I eliminate the 1 pixel border in Netscape?
A: A common request from content developers and designers has been the ability to remove the 1 pixel border that appears on the left hand side of the Navigator window. Designers and developers who would like to provide content that is completely flush on the left margin have not been able to until now.

A feature of Navigator 4.0 and higher *only* allows developers to specify a body marginheight and marginwidth, all the way down to zero. Internet Explorer browsers avoided the offset problem.

<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">

Q: Should META tags be used for files containing a frameset?
A: For sites using Frames, the file containing the <FRAMESET> tag should include a META description tag and a META keywords tag which describe the entire site. This is particularly important for web site home pages. It is also helpful to provide a <NOFRAMES> section containing text which completely and accurately describes the entire site. When submitting to search engines, all pages linked from the frameset should to be submitted as robots used to review and catalog sites generally do not follow all the links.
Q: When I use a popup window or a "new" window that is a frameset, how can I close this window?
A: Include either of the following scripts in the body of any frame within the displayed frameset.

<A HREF="#" onClick="parent.window.close()">Close Window</A>

or

<FORM><INPUT type="button" value="Close" onClick="parent.window.close()"></FORM>

Q: What choices do I have in the appearance(or disappearance) of scroll bars?
A: Scrolling, hscrolling, and vscrolling can be set to "yes", "no", or "auto" to control the appearance (or disappearance) of the frame's scroll bars. [using "hscrolling" and "vscrolling" to control the horizontal and vertical bars independently is suspect] Use of "auto" is a convienent setting because it lets the browser display scroll bars only when necessary.
Q: Now that I have my frames page working, how can I maintain its integrity and keep some one from opening only one of the supporting pages?
A: To solve this linking problem, open each of your pages supporting your frameset and just before the </head > tag, enter the following code:

<script language="JavaScript">
<!--Hide from older browsers if (window == top) top.location.href = "frames.html";
// -- >
</script>

Substitute the name of your frames page(frameset) for the name shown in red. Whenever someone tries to load one of your supporting pages directly, the frames(frameset) page will load instead.

Q: I have designed my frames page and I want my visitors to be able to scroll the entire frameset page. Is this possible?
A: Sorry, this is currently not an option. Suggest you layout your page using <table> format. This will enable users to scroll entire page.

Return to Tutorial