Code:
document.getElementById('i1').onmouseover = "";
For some reason it does not work. Just does not change anything, does not write any errors. How to fix?
UPDATE1 Reason found - commands from a function cannot change the contents of a variable declared outside. But how to fix - while the question
document.getElementById('i1').onmouseover = function(){ alert(this)};
- Yakovlev Andrei