I have a page with some javascript and I don’t want this script to run on print preview page / print.
I can disable CSSes with media=”screen”. How can I detect “print” mode in javascript? I need at least a Chrome solution
I have a page with some javascript and I don’t want this script to
Share
Well u need jquery
And then a plugin of it name jmediatype
Then u can get if it is print meada type by :