Friday, August 1, 2014

How can you disable all style tags in HTML.

Suppose there are 4 Style tag which might be applied on your HTML page.
You can disable all those styles using following statement

JavaScript Function to Remove Styles 

function removeStyles() {
document.styleSheets[0].disabled = true;
document.styleSheets[1].disabled = true;
document.styleSheets[2].disabled = true;
document.styleSheets[3].disabled = true;
}

No comments:

Post a Comment