1. I don't what to turn off shift click for the page. I want to turn it off for specific links.
2. I want shift-click to be replaced with a regular click. Meaning, when the user shift-clicks the link they will be taken to the "HREF" within the current browser window and NOT open up a new window.
I did find a script that does something close to what I want, but it fails to meet all of the criteria above... I'll list it below so someone doesn't waste their time providing it as a solution....
Expand|Select|Wrap|Line Numbers
- function mouseDown(e)
- {
- var shiftPressed=0;
- if (parseInt(navigator.appVersion)>3)
- {
- if (navigator.appName=="Netscape")
- shiftPressed=(e.modifiers-0>3);
- else
- shiftPressed=event.shiftKey;
- if (shiftPressed)
- {
- alert ('Shift-click is disabled.')
- return false;
- }
- }
- return true;
- }
- if (parseInt(navigator.appVersion)>3)
- {
- document.onmousedown = mouseDown;
- if (navigator.appName=="Netscape")
- document.captureEvents(Event.MOUSEDOWN);
- }