FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to disable target=_blank
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to disable target=_blank [message #163032 is a reply to message #163027] Sun, 19 September 2010 15:36 Go to previous messageGo to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
Senior Member
naudefj wrote on Sun, 19 September 2010 17:09
They 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)


[Updated on: Sun, 19 September 2010 15:36]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changes won't take affect.
Next Topic: Moderated forum?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri May 10 06:47:42 GMT 2024

Total time taken to generate the page: 0.03849 seconds