daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. div.attachEvent('onclick', sayHi.invoke);
  2.  
  3. //en Mootools, ça se fait comme ça:
  4.  
  5. $('div').addEvent('click',function(event){
  6. event.stop();//si tu ne veux pas que ton clic fasse autre chse que le javacript
  7. sayHi();
  8. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top