Article

Practical Web Design - Frames and Frame Usage Explained

Page: 1 2 3 4 5 6 7

Final Tips

Always include alternative navigational links for your framed HTML pages for those who don't have frames-capable browsers.

Always, always, always add the target="_blank" attribute to links to outside Web pages from within your framed pages. Otherwise, your frame may envelop the outside site within its frameset. That effect (sometimes deliberately inflicted upon poor innocent surfers by evil-minded Web designers, most often employed by commercial sites that want to keep their ad-heavy frameset in front of your face at all times) angers both Web surfers and site owners who don't want your frameset "hijacking" their content. There may even be legal repercussions to trapping other sites in your frames.

Keep other folks' frames from engulfing your pages by including this <meta> tag in the <head> section of every page:

<meta http-equiv="Window-target" content="top" />

Bookmarking a framed HTML page is easy enough -- just right-click inside the frame, choose "Add to Favorites" or "Add Bookmark," and that framed page is bookmarked. Of course, most modern versions of Netscape and Internet Explorer can bookmark framed pages without the fuss of right-clicking.

You can share data between several frames using the <object> tag. This is a little more sophisticated than the rest of the material I've covered, so I'll leave it to you to find out more about how to use this command. Start with the W3C specifications.

A suggestion relating to the <object> tag above: using JavaScript or CGI scripts to help manage your framed sites dramatically increases your ability to keep everything together in a reasonable amount of time, and gives your visitors more control over their navigation and usage of your site. As I'm neither a JavaScript nor Perl codemaster, I'll let you learn about that on your own! You can start this investigation, too, with the W3C specifications above, and continue with SitePoint's own excellent Designing with Frames tutorial from the inimitable Kevin Yank.

Want to learn how to make an index page that works for both IE and Netscape, as well as for browsers that don't support the effect? About.com has a nice little tutorial on how to use a JavaScript snippet to achieve this goal.

Have fun framing, and as always, feel free to comment in the Forums. Who knows, you may actually find a use for frames in your site that you hadn't considered before!

Bibliography

Choosing a DOCTYPE
http://www.htmlhelp.com/tools/validator/doctype.html

Death of a Meta Tag
http://searchenginewatch.com/sereport/article.php/2165061

Designing with Frames - An Introduction
http://www.sitepoint.com/article/622

Doug's Frames Tutorial
http://users.snowcrest.net/dougbnt/frametut.html

Frames Are a Picnic
http://hotwired.lycos.com/webmonkey/96/31/index3a.html

Frames in HTML Documents
http://www.w3.org/TR/REC-html40/present/frames.html

Frames Without Tears
http://www.alistapart.com/stories/frames/frames4.html

Frames - Why and Why Not
http://webdesign.about.com/library/weekly/aa111097.htm

Framing the Web
http://webreference.com/dev/frames/i

The Furor Over Frames
http://webclipart.about.com/library/weekly/aa062797.htm

The History of HTML
http://hotwired.lycos.com/webmonkey/97/17/index0a.html?tw=authoring

How to Use HTML Meta Tags
http://www.searchenginewatch.com/webmasters/article.php/2167931

The <IFRAME></IFRAME> Element - Inline Frames
http://webdesign.about.com/library/tags/bltags-iframe.htm

IFrames
http://webdesign.about.com/cs/frameshelp/a/aaiframe.htm

The IFrames Lowdown
http://hotwired.lycos.com/webmonkey/96/37/index2a.html

The Ins and Outs of Frames
http://www.ddj.com/documents/s=2361/nam1011135274/index.html

Introduction to Frames
http://www.jalfrezi.com/frames.htm

Lynx Users Guide version 2.8.3
http://lynx.isc.org/release/lynx2-8-3/lynx_help/Lynx_users_guide.html

Search Engines and Frames
http://www.searchenginewatch.com/webmasters/article.php/2167901

Some Caveats with Using Frames
http://www.evolt.org/article/rating/22/293/index.html

To Frame or Not to Frame?
http://www.sitepoint.com/article/122

Top Ten Mistakes Revisited Three Years Later
http://useit.com/alertbox/990502.html

Web Developer Foundations: Chapter 5: XHTML Frames
http://webdevfoundations.net/chapter5/l

Web Frames for Everyone
http://webdesign.about.com/library/weekly/aa110199.htm

Web Site Administrivia
http://www.ehsco.com/opinion/19980209.html

Why Frames Suck (Most of the Time)
http://www.useit.com/alertbox/9612.html

Writing HTML Frames for Audio Browsers
http://webdesign.about.com/cs/frameshelp/a/aaaccessframes.htm

If you liked this article, share the love:
Print-Friendly Version Suggest an Article

Rate This Article

  • 1
    Poor
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
    Great

Comment on This Article

Have something to say?

Post A Comment

You need to be a member of the SitePoint Forums to comment on this post. Sign Up

Already a member? Post using your SitePoint Forums account: