HTML Escape from Frames Link

 

HTML Escape from Frames Link

Frames enable two or more HTML pages to be displayed within the same window. Each page is displayed within its own frame and functions independently. In addition, each frame has the option to contain scrollbars and borders and may be whatever size you’d like.

If someone creates their webpage with frames, and then links to your website within specifying a target in which the link should open, your webpage would be trapped within the frame.

However, you can create a special link to help your visitor escape and open your page within a new window.

 
Place the following code within your HTML where you would like the link to appear.

HTML Code:

<a href="http://www.yourdomain.com/" target="_top">Escape From Frame</a>

You’re actually just creating a link to your own website with the TARGET set to "Top."

At one time, there were many sites designed with frames. However, as more and more people have realized that frames are not a good choice for designing a website, the number of sites designed in frames has dropped considerably. For this reason, the chance of your site being trapped within someone’s frames is slim. However, you may still want to include this link at the bottom of your site.

Link Targets

When you create a link, it will automatically open within the same window or frame when clicked on.

If you’d like your link to open within another window or frame when clicked on, you will need to add target="" within your link HTML code.

The standard targets are as follows:

_blank – Opens a web page within a new window

_self – Opens a web page within the current window.

_parent – Opens the web page within a frame that is higher-ranking than the current frame in which the link was clicked.

_top – Opens the web page on top of all other windows or frames full screen.

Frame Name – Opens a web page within a specified frame name within a frameset. For example, if the frame name is left_frame, the target would look like this: target="left_frame"

HTML Code:

<a href="http://www.yourdomain.com/" target="_blank">Escape From Frame</a>

HTML Code:

<a href="http://www.yourdomain.com/" target="_self">Escape From Frame</a>

HTML Code:

<a href="http://www.yourdomain.com/" target="_parent">Escape From Frame</a>

HTML Code:

<a href="http://www.yourdomain.com/" target="_top">Escape From Frame</a>

HTML Code:

<a href="http://www.yourdomain.com/" target="_frame_name">Escape From Frame</a>

 

Give it a try…

To view the results below, after making changes to the above code, place your cursor at the end of the code and press your space bar on your keyboard.

Here’s the result…

This concludes the Creating an HTML Escape from Frames Link code.
 

 

 
Visit the following pages for a wealth of copy and paste codes and tips:

HTML Tips
Copy and paste special effect HTML codes for your web page.

HTML Codes
An HTML codes chart you can use to copy and paste codes into your web page.

HTML Color Codes
An HTML color codes chart you can use to copy and paste color codes into your web page.

JavaScript Codes
Copy and paste special effect JavaScript codes for your web page.

Web Design Tips
Tips, tricks, and special effect codes for your web page.

HTML Tags
A list of HTML tags.

HTML 5 Tags
A list of the latest HTML tags to be developed.

ASCII Codes
Special text characters and code for your web page.