Open New Window Using REL External Instead of Deprecated Target Attribute


/ Published in: JavaScript
Save to your folder(s)

Excellent Script for opening new windows from links while adhering to modern HTML/XHTML standards. Simple put rel="nofollow" in the anchor and link to the script within the HEAD.

I prefer to remove the text that states the link opens in an external windows. To do that, simply change this part of the last line from this:
("rel","external"," (external website, opens in a new window)")

to this:
("rel","external","")

URL: http://www.456bereastreet.com/archive/200610/opening_new_windows_with_javascript_version_12/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.