javascript - Html on before print -


i have page couple of ads pop , has form on it. want use onbeforeprint detect , remove ads, form submit , reset buttons , replace textboxes strings. after user closes print dialog (i not care if canceling or clicking print) ads come , form remade.

you can hide them using following css...

@media print {     input, .ads-class      {         display:none     } } 

obviously edit selector suit needs. way don't need worry adding things after printing.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -