Left Quote    Black holes are where God divided by zero.
- Steven Wright    
Right Quote
[login] | [Register]

New windows without using the target attribute

by: sm0ke
Page: 2 of 2
(View All)

Javascript rel=external

The following function was written by Roger Johansson,
Save this file as jstarget.js

You can remove the "Warning opens in a new window" by editing line 6 and the final line. To call the script into the html document you want to create the links in put the following between the tags: [code] [/code] And finally the link is set as: [code] Link to Some Site [/code] So, weather you like opening links in new windows or not, at times its unavoidable and you now have 2 new ways to accomplish it if using the XHTML Strict doctype, or even if you just want to stop using target tags. The seccond method is more expandable than the first, you can add to it and make the script your own, but please post any major additions or improvements to the original author linked above.

1  |  2  |  

No Comments for this page.

You Must be logged in or a member to comment.

Tutorial Stats

Tutorial Stats

0 Total Comments
0 Rating of 5 ( Votes)


Tutorial Options

· Login to Rate This Article
· Login to Post a Comment
· Read more by this author
Digg This Article! Bookmark This Article Reddit: Bookmark This Article BlinkList: Blink This Article! YahooMyWeb BlogMarks: Add This Mark! Furl: Save This Article Spurl: Mark This Article



· Site Design Made Simple
· HTML Tutorial
Your Article Here

"" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank