First, I think the
input
element can't have a closing tag, so adjust your markup to look like this:
<input type="button" onclick="test(this)" value="test" />
Also, supply the type attribute to the
script
element:
<script type="text/javascript">
Maybe the Gecko engine treats these as errors and thus the code doesn't get executed.
I hope this helps.