The disabled property sets or returns whether or not the target URL should be disabled.
linkObject.disabled=true|false
The following example disables the style sheet:
<html> <head> <link rel="stylesheet" type="text/css" id="style1" href="try_dom_link.css" /> <script type="text/javascript"> function disableStyle() { document.getElementById("style1").disabled=true } </script> </head> <body> <form> <input type="button" id="button1" onclick="disableStyle()" value="Disable style sheet" /> </form> </body> </html>
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答!! 點(diǎn)擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號(hào)