gmail - javascript cloneNode with events -
I'm working on a Greysinkie script for Gmail where I need to copy the "inbox" link. It's okay to use, but I think there is an onclick event associated with it on runtime. So, this is a question of two questions: 1. Is there a way to see events related to a node? 2. Is there a way to copy those events? The closest thing I found was jQuery, and I'm not ready to go there yet. Thanks!
- Unless it is set by using the
onclickattribute - Not trustworthy (You can make a copy of the
onclickattribute, but this will continue, depending on whether it was used and what it would be is).
You're better off adding your own handler, and then triggering that event to the original ... or behaving in any other way Are being simulated.
Comments
Post a Comment