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!

  1. Unless it is set by using the onclick attribute
  2. Not trustworthy (You can make a copy of the onclick attribute, 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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -