How to change CSS at run time by Javascript?
-
I have different css style sheets.Each of which has different color scheme for the web site.I have used the <Link rel="stylesheet" type="text/css" href="css/stylesheet.css"> tag to apply the css style sheet. I want to allow the user to choose from those different color schemes and apply that color scheme to entire web site.So How I change the css style sheet at runtime. Basically, I want to change the href attribute of <Link> tag. Is there any way to apply style sheet that user selects? Thanks, Vipin Chauhan
-
I have different css style sheets.Each of which has different color scheme for the web site.I have used the <Link rel="stylesheet" type="text/css" href="css/stylesheet.css"> tag to apply the css style sheet. I want to allow the user to choose from those different color schemes and apply that color scheme to entire web site.So How I change the css style sheet at runtime. Basically, I want to change the href attribute of <Link> tag. Is there any way to apply style sheet that user selects? Thanks, Vipin Chauhan