hi ...
the typical way is as follows:
[HTML]<script type="text/javascript">
function do_the_click(btn) {
alert('you clicked the button with id = ' + btn.id);
}
</script>
<input type="button" value="click me" id="clk_btn" onclick="do_the_click(this);"/>[/HTML]
Try this:
[HTML]document.getElementById('
clk_btn').click();[/HTML]
clk_btn is the ID of your button, if the id is unique in the document that will work. IE and Mozilla have different ways of handling ID serches in the DOM tree thats why it worked on IE. IE creates all the DOM structure into the JS object hierarchy, which means that you can locate this button (assuming its inside a FORM called
f1) using something like this...
However, that's not a JavaScript standard (acording to W3C). Unlike IE, Mozilla is a
http://www.w3c.org standard compliant browser (sort of), so that will not work in Mozilla.