I'm working on a website where I'm providing Alternate Stylesheets as different templates for viewing the site (in IE providing a way within the site to change it).
The question is in modern browsers that support Alternate Stylesheets (ex. Firefox) is there a way (in javascript) to detect when the user switches stylesheets?
Currently I have the unload event grabbing the active stylesheet and saving it in a cookie, but I'm hoping I can do it before then as it's throughing off my PHP reading of the same cookie.
The question is in modern browsers that support Alternate Stylesheets (ex. Firefox) is there a way (in javascript) to detect when the user switches stylesheets?
Currently I have the unload event grabbing the active stylesheet and saving it in a cookie, but I'm hoping I can do it before then as it's throughing off my PHP reading of the same cookie.