HTML and CSS Reference
In-Depth Information
Code
Explanation
}
function change() {
ballvx = Number(f.hv.value);
ballvy = Number(f.vv.value);
return false;
}
</script>
</head>
<body onLoad="init();">
<canvas id="canvas" width=
"400" height="300">
This browser doesn't support
the HTML5 canvas element.
</canvas>
<br/>
<form name="f" id="f" onSubmit=
"return change();">
Horizontal velocity <input name=
"hv" id="hv" value="4" type=
"number" min="-10" max="10" />
<br>
Vertical velocity <input name=
"vv" id="vv" value="8" type=
"number" min="-10" max="10"/>
<input type="submit" value="CHANGE"/>
Search WWH ::




Custom Search