function fireClickEvent(control)
{
if (document.all)
{
control.fireEvent("onclick");
}
else
{
var clickEvent = window.document.createEvent("MouseEvent");
clickEvent.initEvent("click", false, true);
control.dispatchEvent(clickEvent);
}
}
No comments:
Post a Comment