Guest User

Untitled

a guest
Jan 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function eHandler(e, addCustomColor) {
  2. var objTarget = e.target;
  3. objTarget.style.backgroundColor = addCustomColor;}
  4.  
  5. var variableWin = this; // keyword THIS represent [object Window] in JS
  6.  
  7. variableWin.addEventListener('mouseover', function (e) {
  8. eHandler (e, 'yellow'); }, false);
Add Comment
Please, Sign In to add comment