I am curious why it doesnt alert 5 when i click the button. anyone know why? http://jsfiddle.net/bm8dd/
<center>
<input id='1' type='text' onfocus='1();'>
<input id='2' type='text' onfocus='2();'>
<br>
<br>
<button type='button' onclick='3()'>Button</button>
</center>
<script>
var x = 5;
function 3() {
alert(x);
}
</script>