I have a welcome page, which have two buttons- "full" version and simplified. Both will redirect to same page, but depending on which button was "main" page entered through I want to load different CSS file (simplified version will only have background colors, not images). How can it be done? (I'd preffer javascript, html and css).
Asked
Active
Viewed 48 times
1 Answers
0
- Attach a parameter to the url:
yoururl.com/main.html?full=0
- Get the parameter with JS: https://stackoverflow.com/a/8463056/2587420
- Load the specific CSS with JS: http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml

Community
- 1
- 1

user2587420
- 60
- 3