var widget = $('<div/>', {id: 'asterisk-popup', class: 'popup-box noprint', style: 'min-height: 180px;'}); 

There is such a window in the document. The script periodically shows it show() or hides fadeOut() .

In the styles written

 @media print { .noprint { display: none; } } 

But in general, this bundle does not work. When printing, the window still climbs. I use hard coding to prevent the window from attaching to the DOM on certain pages, but can it be easier?

    1 answer 1

    Inline-style, hung by the script, is more priority than the style from the css-class, so you should use !important :

     @media print { .noprint { display: none !important; } }