|
Question:
How to disable onClick eventI have embedded div in another div. In the parent DIV element I have placed onClick event but I want to disable that event for the inner DIV. How can I do that?
You can use property "cancelBubble" to stop propagating the event to parent layer. I made sample with two layers with different border. This solution works on IE, FFox, Opera, Safari. don't use "window.event" as this is not recognised by FFox. Here it is :
Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
|
|