Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Site warns when an external link is clicked

Why does it work only with the left mouse?

10:34 pm on Jun 29, 2010 (gmt 0)

New User

5+ Year Member

joined:June 29, 2010
votes: 0

Hello everyone !

I am curious about one thing.. and maybe you can enlight me on this:

I know a popular website which has external link warning message when you left click on a link that takes you away from that website... but on the same website and the same link if you click with your mouse wheel (firefox) or right click the link and then select open in new tab (internet explorer) the browser takes you to the specific link and the external link warning message doesn't even show up ! and I dont unterstand how this is possible.
Thank you for your time , have a nice day !
11:25 pm on June 29, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 31, 2005
votes: 0

Possibly they are using a onclick JavaScript function to give you the warning. Onclick is not triggered when you right click or use your wheel.
1:56 am on June 30, 2010 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
votes: 20

Hi ssantiago, welcome to WebmasterWorld!

Dijkgraaf probably pointed you in the right direction. If you still have questions about the technology behind this link warning, feel free to come back here and we'll try to help further.