- This topic is empty.
Basically, I need to know how I can make the style of a website change using the onclick function.
Please let me know.
Best way to do it is to just add a class to the body and use CSS to change the style: http://jsfiddle.net/qRds9/2/
Johnny, that’s good. I made this (http://jsfiddle.net/BmXNe/)
but using your method you can only change the theme ONCE. then the links are rendered useless. And on the website I’m working on it’s not going to make the users very happy knowing they’d have to refresh every time they want to try a theme more than once.
How do i make it so the links work infinitely?