_blank new window question

liunx

Guest
When using the <a href=http://www.htmlforums.com/archive/index.php/"-------" target="_blank"> Is there a way to set the dimensions for the new window? Or is it a java thing?<!--content-->its a javascript thing. <br />
<br />
heres one way, though easy... its also limited to just this one link:<br />
<br />
<A HREF=http://www.htmlforums.com/archive/index.php/"#" ONCLICK="open('http://www.yahoo.com','MINIme','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resiza ble=0,width=300,height=300')">Open a Window</A><!--content-->I've seen both target="_new" and target="_blank" used in href tags and am wondering which is better to use or does it matter?<br />
<br />
Thanks, Gandalf<br />
:D<!--content-->shouldn't matter I even use target="new-window" and that even works.<!--content-->from <!-- w --><a class="postlink" href="http://www.devguru.com">www.devguru.com</a><!-- w --><br />
<br />
target <br />
The target attribute specifies the name of the frame or window in which the target page should appear when a link is clicked. The four reserved names are _blank, _parent, _self, and _top. <br />
<br />
Using _blank ALWAYS opens links in a new window. Anything else just creates a new window instance by that name if a window or frame by the defined name isn't found. If you use "new-window" it will look for a frame or window called "new-window" and if not found... a new window will appear. <br />
<br />
However, if you have multiple links on the page using the same target name of "new-window", things get interesting. <br />
<br />
Link one looks for a window or frame called "new-window" and since it cannot find it, creates a new window instance called "new-window".<br />
<br />
Link two looks for a window or frame called "new-window"... and if we have not CLOSED the window opened by link 1, guess where the content for link 2 goes? Not into a new window instance that is opened... but into the same window that link one opened. <br />
<br />
And since we know that _new isn't a reserved target name, will it always open a new window? no.<br />
<br />
Try it out:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.yahoo.com" target="new-window">yahoo.com</a><br><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.wahoo.com" target="new-window">wahoo.com</a><br><br />
<br><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.webcrawler.com" target="_blank">webcrawler.com</a><br><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.infoseek.com" target="_blank">infoseek.com</a><br><br />
<br><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.eye4u.com" target="_new">eye4u</a><br><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.moviephone.com" target="_new">moviephone.com</a><br><!--content-->jeez I didn't even know that :p well part of it I did but not the other part.<!--content-->Wow!<br />
<br />
Learn something new everyday.<br />
<br />
Thanks Dr. Web<br />
<br />
<br />
Gandalf<br />
:D<!--content-->
 
Top