Simply Roll Html Code

decaspoke(15)
Published in
#roll
Words
56
Reading
1 min
Listen
Play
9y

<html>

<head>

<script 

language="Javascript" 

type="text/javascript">

function rollDie () {

var result = 0;

result = Math.floor((Math.random() * 6) + 1);

return result;

}

function playGame () {

document.open ();

document.write ('HELLP FRIENDS VOTE UP');

document.close ();

}

</script>

</head>

<body>

<form 

action="" 

method="get" 

name="dieForm">

<input 

name="rollButton" 

type="button"

value="Roll the Die"

onclick = "playGame();">

</form>

</body>

</html>