<a href=""></a>
<textarea></textarea>
<object></object>
<img src="" />
<div id="content">content</div>
<div class="test">test</div>
And javascript
oj = ['a', '#content', '.test'];
oj.forEach(function(val) {
val.onmouseover = function() {
alert("Mouseouver !!!");
}
});
When I mouseover this object, result not alert, how to fix it ?
ojis an array of strings. Not DOM elements.