Question

I'm wondering what is happening when you print an html page in the different browsers (IE9++).

Do the different browsers refresh the page re-executing the javascript (implying re-executing some servers calls) ?

How to know you're refreshing -if - for a print in JS ?

Était-ce utile?

La solution

No, the page is not refreshed when printed. You can however apply a special stylesheet that is only valid for print use. For example:

@media print {
    p { font-family:serif; color: black; font-size:12pt }
}

See also http://coding.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top