<link
id="el"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
disabled
crossorigin="anonymous" />HTMLLinkElement: disabled property / notebook
HTMLLinkElement: disabled property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const el = document.getElementById("el");
console.log(el.disabled); // Output: true
// Set the disabled property to false to enable the stylesheet
el.disabled = false;
console.log(el.disabled); // Output: false