Supress print of Javascript

D

Dave

Hi;

I've snuck a Javascript menu (HVMenu) into top.htm so it
appears as part of the banner in all my pages. Having to
manually maintain top.htm is a small price to pay for
having the menu nicely integrated into the site's look.

Anyway, when pages are printed, the Javascript menu prints
out of position. I know how flakey printing web pages can
be, and this isn't a frequent problem, but it would be
nice to omit it from printed pages since they are
occasionally posted around the building.

I've tried a media="print" style to omit the banner, but
whether I put the noprint class in a top.htm <td> or <tr>
tag, or in the <script> tags calling in the menu, it still
appears when the page is printed. In the former, the
noprint class works on the banner itself, just not the
menu.

Is there a reasonably simple way to prevent external
Javascript from rendering on a print command?

Here's hoping,
Dave
 
T

Thomas A. Rowe

I think you would need to insert this each individual page that is using the
top.htm.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top