ho fatto cosi:
codice:
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function controlla(testo){
	if (testo.substr(0, 4).toLowerCase()!="nome:"){
		document.getElementById("campo").value = "nome:"+testo;
	}

}
</script>
</head>
<body>
<input type="text" id="campo" onkeyup="controlla(this.value)"/>
</body>
</html>
il problema e che cosi facendo per ogni carattere che digito mi inserisce nome: .... :master: