Jump to content

disableEvents


gerkintrigg

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.