alternative for .click() method in firefox

Posted by script programmer on Stack Overflow See other posts from Stack Overflow or by script programmer
Published on 2010-06-15T10:08:57Z Indexed on 2010/06/15 10:12 UTC
Read the original article Hit count: 110

Filed under:

I have a href from that i am giving out a popup , and i want to activate this on my body overload . I am using "document.getElementbyId("myelement").click()" this is working fine in IE but FireFox is not supporting it. And i know that .click() will not be taken by firefox , but i dont have any other way to do it. Can u please suggest me with a workaround that will be accepted by IE as well as FF. Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript