output

?? [?a?t?p?t]

n ?? ??

vt.

html5 ?? ???

Function: <output> ??? ???? ??? ?? ??? ??? ??? ?????.

Parameters:

?? ? ??
forid of another element? ?? ???? ??? ?? ??? ??? ?????.
formformname ?? ??? ?? ?? ??? ??? ?????.
nameunique name? ??? ??? ??? ?????. (?? ?? ? ??)


html5 ?? ?

<!DOCTYPE html>
<html>
<body>

<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
<input type="range" id="a" value="50">100
+<input type="number" id="b" value="50">
=<output name="x" for="a b"></output>
</form>

<p><b>注釋:</b>Internet Explorer 不支持 output 標(biāo)簽。</p>

</body>
</html>
???? ?? ?

??? ????? ??? "???? ??" ??? ?????