Re: How to disable target=_blank [message #163032 is a reply to message #163027] |
Sun, 19 September 2010 15:36 |
Ernesto
Messages: 413 Registered: August 2005
Karma:
|
Senior Member |
|
|
naudefj wrote on Sun, 19 September 2010 17:09They should be removed as it's generally seen as a bad practice.
If you need this functionality, you can paste this JS code into your html:
$('a[href^="http://"]')
.attr({
target: "_blank",
title: "Opens in a new window"
});
This requires the user to have javascript enabled AND use the jquery library
(Although I always advocate that javascript is required in a modern web experience, there are still some people who have it disabled)
Ginnunga Gaming
[Updated on: Sun, 19 September 2010 15:36] Report message to a moderator
|
|
|