Salve a tutti,
stavo guardando il codice di un form validato con un action script
<script language='Javascript' type='text/javascript'>
<!--
function check(form) {
if (form.nome.value == '') {
alert("Il nome è un campo obbligatorio");
form.nome.focus();
return false;
}
return true;
}
// -->
</script>
e ho visto che al body era stato aggiunto:
<body onLoad='document.forms.richiesta.name.focus()'>
richiesta è il nome del form ma mi chiedevo a cosa serviva questa cosa associata al body