Continuing on Ozzie 's answer. When you change the stylesheet link element target CSS file, the page will reload automatically. If I'm not mistaken. This makes the preview quite easy. If you want the preview to be framed, place it inside an object/iframe so it won't affect the main document style. Store the desired CSS choice either client or server-side and reload the page using user preference.