gerkintrigg Posted August 14, 2008 Share Posted August 14, 2008 I found this neat bit of code: document.onclick=disableEvents document.oncontextmenu=disableEvents I like it - don't get me wrong... it's useful... but how do I make exceptions to this rule? In other words how do I tell the script to disable most events except X, Y and Z? I want to use it on this page: http://cornwalldevon.co.uk/test.php but as you will notice (especially from the source code), I have a href links in there which I want to enable within the alert_box id... Any suggestions please? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.