maclenin
February 22nd, 2010, 06:26 PM
Is it possible to use document.getElementById() to dynamically modify the "target value" of onmouseover - in the same way that I might modify an "src" or "href" target?
Example:
old (html) value: onmouseover="some_function()"
js: document.getElementById("test").onmouseover="some_other_function()";
new (html) value: onmouseover="some_other_function()"
Thanks for any guidance.
Example:
old (html) value: onmouseover="some_function()"
js: document.getElementById("test").onmouseover="some_other_function()";
new (html) value: onmouseover="some_other_function()"
Thanks for any guidance.