jftuga Posted February 14, 2007 Share Posted February 14, 2007 (edited) I have 2 style sheets - normal.css and print.css. I am planning on having a link on the page: <a href="currentpage.htm?print">, where currentpage.htm will be the same page the user is on. I want JavaScript to look for ?print (easy enough) and then load the appropriate style sheet based on if ?print exists or not. How can I do this?The way my style sheet is currently embedded:<link href='normal.css' rel='stylesheet' type='text/css' title='normal content'>(this is what would have to change to print.cssThanks,-John Edited February 14, 2007 by jftuga Link to comment Share on other sites More sharing options...
jftuga Posted February 14, 2007 Author Share Posted February 14, 2007 I think I found my answer http://www.codelifter.com/main/javascript/changestyles.htmlI am just about to try it out now.-John Link to comment Share on other sites More sharing options...
khalilzip Posted February 27, 2007 Share Posted February 27, 2007 yes Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now