name 屬性可設(shè)置或返回重置按鈕的名稱。
resetObject.name=name
下面的例子將返回重置按鈕的名稱:
<html>
<body>
<form>
<input type="reset" id="reset1" name="reset1" />
</form>
<p>The name of the reset button is:
<script type="text/javascript">
x=document.getElementById('reset1');
document.write(x.name
);
</script></p>
</body>
</html>
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會為你解答!! 點(diǎn)擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號