Red de conocimiento informático - Consumibles informáticos - Cambiar aleatoriamente los códigos fuente del sitio

Cambiar aleatoriamente los códigos fuente del sitio

ltdiv gt

lt entrada? id="bb"? tipo="botón"? Valor = "Generar"? onclick = 'gg()'/ gt;

ltEnter? id="tt"? tipo = " texto "/ gt;

lt/div gt

lt estilo? type="text/css " >>p>

Entrada{

Margen:? 10px;

}

lt/estilo gt;

lt script? type = " text/JavaScript " gt;

¿Función? ¿gg? ()?{

document.getElementById('tt '). ¿valor? = math . floor(math . random()* 1000

}

lt/script gt

Número aleatorio dentro de 1000