alt 屬性設(shè)置或返回在瀏覽器不支持密碼域時顯示的替代文本。
passwordObject.alt=alternate_text
下面的例子可返回密碼域的替代文本:
<html>
<body>
<form>
<input type="password" alt="Password field" id="pwd1" />
</form>
<p>The alt text for the password field is:
<script type="text/javascript">
x=document.getElementById('pwd1');
document.write(x.alt
);
</script></p>
</body>
</html>
如對本文有疑問,請?zhí)峤坏浇涣髡搲瑥V大熱心網(wǎng)友會為你解答??! 點擊進入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號