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? Link to comment https://forums.phpfreaks.com/topic/119718-disableevents/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.