Javascript examples for DOM HTML Element:Link
Link disabled Property - Find out if the linked document is disabled or not:
<!DOCTYPE html> <html> <head> <link id="myLink" rel="stylesheet" type="text/css" href="http://java2s.com/style/bootstrap.min.css"> </head>/* w ww.j av a 2s. c om*/ <body> <h1>I am formatted with a linked style sheet</h1> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myLink").disabled = true; } </script> </body> </html>