|
|
|
By default, links will open in the current window or frame.
You need to add a target if you want the link to open in another window or frame than the link itself is placed in.
To do this you simply add a target="" to the <a href>.
This example will open yahoo in a new window:
<a href="http://www.yahoo.com" target="_blank">
|
|
Predefined targets are:
- _blank loads the page into a new browser window.
- _self loads the page into the current window.
- _parent loads the page into the frame that is superior to the frame the hyperlink is in.
- _top cancels all frames, and loads in full browser window.
In addition to these, you can also enter the name of a frame window if your page is within a frameset.
You can click here to learn more about links in framesets.
|
|
|
|