Free Web tutorials covering HTML, CSS, JavaScript, and DHTML from beginner to advanced. Free downloads and developer resources. Personalized help via email, form, and chat.

free, web, tutorials, HTML, html, CSS, css, stylesheet, cascading stylesheet, Javascript, javascript, JavaScript, DHTML, dhtml, beginner, advanced, web development, web page, web site, free web tutorial, free HTML tutorial, free CSS tutorial, free css tutorial, free cascading stylesheet tutorial, free stylesheet tutorial, free javascript tutorial, free DHTML tutorial, free HTML class, free CSS class, free stylesheet class, free cascading stylesheet class, free javascript class, free DHTML class">

Free Web tutorials covering HTML, CSS, JavaScript, and DHTML from beginner to advanced. Free downloads and developer resources. Personalized help via email, form, and chat. free, web, tutorials, HTML, html, CSS, css, stylesheet, cascading stylesheet, Javascript, javascript, JavaScript, DHTML, dhtml, beginner, advanced, web development, web page, web site, free web tutorial, free HTML tutorial, free CSS tutorial, free css tutorial, free cascading stylesheet tutorial, free stylesheet tutorial, free javascript tutorial, free DHTML tutorial, free HTML class, free CSS class, free stylesheet class, free cascading stylesheet class, free javascript class, free DHTML class

<Code_Punk>'s

Advanced HTML Lesson 22:
More Link Targeting

Code Tutorials



Site Development



Downloads



Help!!



Home

This is just a quick lesson on how to make links that will break out of your frames. Think about this: You have some links to search engines on your site. These pages were be designed to take up a whole screen, not be put in your frames. How do you code a link that will break an external page out of your frames?

The answer is with the <a> tag's TARGET attribute. There is a special "_top" value that will load a link in the same browser window, but outside your frames.

<a href="http://www.google.com/" target="_top>
Go To Google</a>

The link above will open Google's main page outside your frames. It will take over the whole browser screen. It's the "_top" part that does this. It refers to the "top" of the frameset -- the parent window. Don't forget the underscore (_) preceding "top".

You can also get around this problem by using the target="_blank" that you learned in Beginning HTML.

Most webmasters code their sites to be viewed in a full browser screen, not someone else's frames. So, be kind to other webmasters -- especially your fellow Punkists -- and let their sites have a whole window by using a TARGET of "_blank" or "_top" in your links to them.

Now, with that out of the way, you should be ready for a quick review and frames exam.



To Advanced HTML Frames Review

Back To Advanced HTML Index