Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling the links in a document on holding the Shift Key

 
Vishal Gandhi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to disable the links in a document whenever the Shift key is pressed. But once the Shift Key is released, the links have to be enabled again. This i because, i wish to avoid the Ctrl-N problem and on clicking on any link while holding the Shift key, the problem resurfaces with a new window sharing the same session getting popped up.
Also, any thing apart from <links, left arrow and right arrow key> has to be enabled. I got some script but because of that the radio button was allowing to be not selected at all.
Please provide me your inputs for this problem asap.
Solutions specific to IE will also suffice.
[ January 19, 2006: Message edited by: Bear Bibeault ]
 
Himanshu Bisht
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well disabling all links on shift press is not a bright idea.I can think of two solutions

1) Hide mouse pointer on shift press.I think it is possible in javascript.

2) Second, try to write all hyperlinks using javascript i.e. fwd all request through javascript.Javascript doesn't allow "Shift+Click" to open a new window so this could also be a solution to your problem.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not hide the mouse!

This will not work if the person disables JavaScript, have a browser that does not allow right click to be disabled, and many others.

If you are having problems with multile sessions or such, then you really need to attack this at the server level.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Point #1: Eric is right -- applying band-aids will get you nowhere. Solve the real problem.

Point #2: Please read this to see why putting URGENT in your titles and posts is not a good idea. I have removed it from your subject title for you.
 
Tiku Popat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also need answer to this problem. Does anyone know how to disable the new browser that opens when one hits Shift and click on the link.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic