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
Post a Comment