I\'m just wondering how I can use JavaScript to simulate a click on an element.
Currently I have:
Have you considered using jQuery to avoid all the browser detection? With jQuery, it would be as simple as:
$("#mytest1").click();