bruno.chassagnol
3 years ago
1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<body> |
|||
<script> |
|||
var jeton_jac=1000; |
|||
var jeton_joueur=100; |
|||
function myFunction() { |
|||
var x = document.getElementById("name").value; |
|||
document.write(x);} |
|||
function nbAlea(){ |
|||
const cars = [Math.floor(Math.random() * 10) , |
|||
Math.floor(Math.random() * 10) , |
|||
Math.floor(Math.random() * 10) ]; |
|||
document.write(cars); |
|||
} |
|||
nbAlea() |
|||
|
|||
</script> |
|||
<button onclick="myFunction()">Validé</button> |
|||
<input type="text" id="name" required |
|||
minlength="4" maxlength="8" size="10"> |
|||
</body> |
|||
</html> |
|||
|
|||
|
|||
|
|||
|
|||
|
Loading…
Reference in new issue