Is there anyway to create a button in html which when clicked, turns on the css?

For example, Imagine a black and white page, and then when you click the button, the page refreshes, giving you the same page but with css? Right now the only way I can think of doing this is with 2 different pages, but it would be nice to to do it with one page.

Read more here:

Content Attribution

This content was originally published by Sai Sohan Gogineni at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: