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:


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.