niente da fare ho aggiunto il nome "ciao" alla funzione richiamandola nel body:
codice:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script> window.onload = function ciao() { a = document.getElementById('intro'); a.style.border = "#ff0000"; } </script> <style> input{ position:relative; margin-left:500px; margin-top:500px; background-color:#FF3366; border-radius: 15px; width:200px; height:40px; border:#000000 2px outset; font-size:1em; font-weight:600; font-family:"Comic Sans MS", cursive; } #intro{ width:960px; height:600px; /* border:3px ridge #FF0099;*/ } </style> </head> <body onload="ciao()"> <div id="intro"><input type="button" id="entra" value="entra nel sito" /></div> </body> </html>

Rispondi quotando