我已经为输出标签编码,但我无法获得代码的实际输出。
代码如下
<html>
<head>
</head>
<body>
<script>
function myscript()
{
z.value=parseInt(a.value)+parseInt(b.value);
c.value=parseInt(a.value)-parseInt(b.value);
d.value=parseInt(a.value)*parseInt(b.value);
e.value=parseInt(a.value)/parseInt(b.value);
}
</script>
<form oninput="myScript()">
<input type="range" id="a">
<input type="range" id="b">
<input type="submit"><br/>
Addition<output name="z" for="a b"></output><br/>
Substraction<output name="c" for="a b"></output><br/>
Multiplication<output name="d" for="a b"></output><br/>
Division<output name="e" for="a b"></output>
</form>
</body>
</html>