I am curios to know if something like these would work in javascript, or if there is a way to do it. Basically, i want to call a function onclick of one object and the same function onmouseover of another object.
document.getElementById("one").onmouseover || document.getElementById("two").onclick= function() {myFunction()};
is this possible