Hi All
If i use the below code i am able to disable the style sheet of a document.
But i wanted to understand how this disabled property works internally? becaues in html normally if we do any change that will be reflected only after refresh. but here the stylesheet change of a html document is achieved with out any refresh. i want to understand how this achieved. Can any one help me?
Thank you in Advance :)
If i use the below code i am able to disable the style sheet of a document.
But i wanted to understand how this disabled property works internally? becaues in html normally if we do any change that will be reflected only after refresh. but here the stylesheet change of a html document is achieved with out any refresh. i want to understand how this achieved. Can any one help me?
Code:
<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>
Comment