Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eHandler(e, addCustomColor) {
- var objTarget = e.target;
- objTarget.style.backgroundColor = addCustomColor;}
- var variableWin = this; // keyword THIS represent [object Window] in JS
- variableWin.addEventListener('mouseover', function (e) {
- eHandler (e, 'yellow'); }, false);
Add Comment
Please, Sign In to add comment