Hola
hugolatra
Prueba este ejemplo:
Código Javascript
:
Ver original<html>
<head>
<script type="text/javascript">
var pepe='';
</script>
</head>
<body>
<form>
<input type="checkbox" onclick="pepe='Hola'" />
<input type"text" onfocus="this.value=pepe" />
</form>
</body>
</html>
Saludos,