How To Print Web Page With A Different Stylesheet Other Than Print.css
I've already got a print.css that manages print outs of a page but I want to create basic-print.css which prints out very basic information. How would I create a button that print
Solution 1:
This is just an idea, but have you tried loading the basic-print.css file with JavaScript?
I'm thinking of something like (using the jQuery library):
$(document).ready(function(){
$('#print-basic-button').click(function(){
$('link').first().removeAttr('href').attr('href', 'basic-print.css');
});
});
Post a Comment for "How To Print Web Page With A Different Stylesheet Other Than Print.css"