Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorwarpdesign_
    • CommentTimeFeb 4th 2010 edited
     permalink
    I know it's possible to enable/disable a <link> element in JavaScript using the disable property.

    Like:
    // This will disable the specified style
    myStyleElement.disabled = true;

    However I'm wondering if it's possible to alter this property at the DOM level, ie: having something like this:

    <head>
    ...
    <link rel="stylesheet" type="text/css" href="mytheme.css" disabled="disabled" />
    ...

    I tried this and this had no effect. I'd like to be able to disable/enable styles at the page generation first.
Add your comments
    Username Password
  • Format comments as (Help)