The media attribute is only for CSS files, not scripts... scripts never run when printing.
On Oct 19, 9:25 am, iantresman <[EMAIL PROTECTED]> wrote: > <script type="text/javascript" src="jquery-1.2.6.min.js" > media="screen, projection"></script> > > I wanted disable jQuery on printing, but added the media tag didn't > work for me. Is there a proper way to do it? > > I also tried disabling a function at printing, which also doesn't > work: > > <script type="text/javascript" media="screen, projection">$(function() > { > $('.map').maphilight(); > > });</script>