• NOW LIVE! Into the Woods--new character species, eerie monsters, and haunting villains to populate the woodlands of your D&D games.

HTML Help

Andrew D. Gable

First Post
If you've seen how my site's organized (link in SIG), I have all the links relegated to a frame. When linking a URL from a frame, would it be possible for me to get that page to load without the frame (fullscreen)?
 

log in or register to remove this ad

Andrew D. Gable said:
If you've seen how my site's organized (link in SIG), I have all the links relegated to a frame. When linking a URL from a frame, would it be possible for me to get that page to load without the frame (fullscreen)?
Hi Andrew,
if I understand you correctly, your problem should be solved by simply adding a "target="new""-tag to your link-reference e.g.
Code:
<a href="www.somewhere.earth" target="new">Sometext</a>

Hope that helps
Firzair
 

Firzair said:
Code:
<a href="www.somewhere.earth" target="new">Sometext</a>

Be careful, at one point this only worked for IE. If you do a google search on javascript and frames you should find the code you need.

Gariig
 

I think target = "top" is probably better... reuses the existing window sans frames, while "new" opens a new window

(from rusty memory... I've not used frames professionally for about six years now)

Cheers
 

Plane Sailing said:
I think target = "top" is probably better... reuses the existing window sans frames, while "new" opens a new window

(from rusty memory... I've not used frames professionally for about six years now)

Cheers

You need to use target = "_top". This will break all frames and load the new page in the current browser window.

example:

<a href="http://your url goes here" target = "_top">

Hope this helps!
 
Last edited:



NeuroZombie said:
You can also use target="_blank" which makes a new window as well, sans frame. Geez, too many ways to do the same darn thing ;)

With as many ways to do this, it's a shame more people don't employ them when creating framed sites. I absolutely hate visiting a site, clicking a link to an outside page, and having it load within the frame.
 
Last edited:


Just for the official word, from the W3C::
6.16 Frame target names
The following target names are reserved and have special meanings.

_blank -- The user agent should load the designated document in a new, unnamed window.
_self -- The user agent should load the document in the same frame as the element that refers to this target.
_parent -- The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.
_top -- The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent.
The spec is here.
 

Into the Woods

Remove ads

Top