I'm trying to run my first javascript. But by clicking on the button I created, the text that should appear on the screen does not appear. Where am I going wrong? My browser is updated so it should run Javascript 1.8.5. Even though I tried to set up version 1.1 and it does not work the same ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Menu</TITLE>
<script language = "JavaScript1.8.5">
function teste1(){
document.write("<h1>Teste1 foi acionado!!!</h1>")
var teste = new Object();
teste.x = 2,4;
teste.y = 5;
document.write(teste.x)
</script>
</HEAD>
<BODY>
<input type="button" value="Teste 1" onClick="teste1()">
</BODY>
</HTML>