Reken java vb 1

rekenen met Java vb 1

<!DOCTYPE html>
<html>
<head>
<link href=’https://fonts.googleapis.com/css?family=Happy Monkey’ rel=’stylesheet’>

<style>

formh2, form h1 {
color: #Fa0;
font-family: ‘Happy Monkey’;
text-shadow: 2px 2px 5px #ccc;
font-size: 20px;
color: #00f;
}


input[type=button], input[type=number], input[type=reset] {
content:”Zet waarde in andere box”;
border: 1px solid #ccc;
border-color: #ccc;
font-family: ‘Happy Monkey’;
font-size: 14pt;
color: #00f;
padding: 10px 10px;
margin: 5px 3px;
cursor: pointer;
box-shadow: 4px 4px #ccc;
border-radius: 12px;

}

input[type=button]:hover {
background-color: #11aa49;
border: 3px solid #11aa49;
border-color: #00f;
border: none;
color: #fff;
content:”Klik hier op”;

</style>
<script>
function reken(form)

{
var phwaarde = form.phw.value;

form.Ow.value = phwaarde;
form.Owaf.value = Math.round(phwaarde*10)/10;
}

</script>
</head>
<body>
<h1> h1 buiten form. </h1>
<!– onzin –>
<form>
<formh2>
<label for=”phw”>Waarde:</label>

<input type=”number” name=”phw” id=”phw” value=”7.3445″ min=”3″ max=”18″ step=”0.235″>
<input type=”button” value=”Zet waarde in andere box” onclick=”reken(this.form)” ><br/>
<input type=”number” name=”Ow” value=”0″ size=”7″ readonly> afgerond:
<input type=”number” name=”Owaf” value=”0″ size=”7″ readonly> </formh2>

<h1> Uitkomst is read only </h1>
</form>
<h1> Uitkomst: read only </h1>
</body>
</html>

h1 buiten form.

Waarde:

Waarde:
afgerond:

Uitkomst is read only

Uitkomst: read only

meer info
Tags: No tags

Add a Comment

Your email address will not be published. Required fields are marked *