<script>
function fakeClick(event, objId) {
var obj=document.getElementById(objId);
if (obj.click) {
obj.click()
} else if(document.createEvent) {
if(event.target !== obj) {
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
var allowDefault = obj.dispatchEvent(evt);
// check allowDefault for false to see event.
}
}
}
</script>
0 Comment(s)