Override Ctrl+Click default action
I have this image gallery using Lightbox 2.0, as such each thumbnail must be a click-able link to the image itself -- lightbox then displays that into a floating div instead.
So the problem, is that before the images were click-able via lightbox one could ctrl+click the thumbnail to highlight it (via a CSS border). Since the thumbnails are now links, when I ctrl+click them the current browser instead performs a default action, usually opening the image in a new tab.
Is there a way to over ride this default behavior?
Thanks in advance.
Since some browsers allow any mouse button combinations to be set to do whatever you want them to do, web pages should never try to override those actions unless you want to convince people that your site is broken. Let people use whatever method they usually use to select things when they need to select them.
If your lightbox script is overriding the default actions for that combination to stop it doing what your browser is set to use that combination for then remove the code from the script that is causing the problem.
Last edited by felgall; 11-06-2008 at 12:58 PM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)