I can\'t find out what is the problem with this JSFiddle.
HTML:
Jav
<script> function test(){ alert("test"); } </script> <input type="button" value="test" onclick="test()">