|
Tutorial 3
|
|
.
|
|
TARGET = "_blank"
"_blank" opens the new document in a new window.
This value does not require the use of any frames. "_blank" is popular in web pages which are devoted to links to "other
resources on the net". By opening a new window for each resource, the user has a sense of a "main" page (the list of resources) and "secondary" pages (each individual resource). However, this results in cluttering the computer screen, which may irritate some of your readers. |
|
Known Bug Microsoft Internet Explorer
Some versions of MSIE have a bug which renders anchors using "_blank" inoperative.
|
|
TARGET = "_parent"
"_parent" is used in the situation where a frameset file is nested inside another frameset file. A link in one of the inner
frameset documents which uses "_parent" will load the new document where the inner frameset file had been.
If the current document's frameset file does not have any "parent", then "_parent" works exactly like "_top": the new
document is loaded in the full window. Note that "_parent" does not work in a frameset which is merely nested inside another framset in the same frameset file. |
|
"_parent" does not work on some versions of Netscape for the Macintosh.
|
|
TARGET = "_self"
"_self" puts the new document in the same window and frame as the current document. "_self" works the same as if you
had not used TARGET at all. |
|
TARGET = "_top"
"_top" loads the linked document in the topmost frame... that is, the new page fills the entire window.
|
|
TARGET = window name
window name is used to put the linked document in a frame or window other than the frame the link is in. Like targeting a
cell in the frames tutorial.........target="B" |
|
So...
target="_blank - a new unnamed window (your page name)
target="_self - is the frame that held the base tags or where you had the link from
target="_top - replaces the frameset entirely
target="first_window - opens a new browser window
target="_parent - loads into the frameset parent of the current
document
|
|
Opening Links in New Windows
|
|
When you have an outside website linked on your site, while using frames, you never want the outside site to open in any of
your frames. Not only is it bad planning it looks horrible seeing a site, other than your own, in any of your frames. To keep this from happening, you need to target the new site to open in a new window. |
|
You've seen sites that have, "stuck in someone else's frames, click here"? The webmaster simply did not set the
target to open in a new browser window. Below are some extensions to use when targeting to an outside link, not only with frames but buttons as well. The one I use the most is not listed. I use "target="_new. It has always worked for me. Two of the more popular ones are blank and top. |
|
This is very important to remember:
|
|
Nothing will work online if you have the extensions named htm. HTM only works in preview. You must change each and
every HTM to HTML, otherwise you will have blank pages when viewing online. Also, when uploading to the internet, the Web Studio house icon needs to be on the Code page. |