Is there a way to activate an onclick event like
onClick="variable();size()"
Where there is also a onmousedown event?
class="div_1" onClick="variable();size()" onmousedown="clickin(this)"
Where the onmousedown javascript will activate the onclick javascript?
function clickin(control) {
var allElements = document.getElementById(control.id);
for (var i=0; i<allElements.length; i++) {
eval(document.getElementById('elementId').getAttribute('onclick'));
}
}
The
onclickproperty usually gets turned into a function. So this will work:/Edit: