Link disabled Property - Find out if the linked document is disabled or not: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Link

Description

Link disabled Property - Find out if the linked document is disabled or not:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials