Is it possible to disable the browser print button, in IE only. It's for our Intranet, we have reports that people insist on using the browser print button instead of the Print Function we have added that just prints the content and not our menus etc.
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)
This will print a blank page when they use the print button - you could get even a little more elaborate and print "Please use print button" on the blank page...
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)
I actually just use the <style media="print"> in my menu DIV or TABLE tags and hide them. That way the use can use their print button and I can still control the display...
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)
No - the function only gets called when the user clicks your button - the browser's print button will always allow the user to print the page...
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)
well, I believe that there is an onprint function ... but I would imagine that only ie 5.7..9.2 only supports it LOL
Robert Carpenter
--------------------
"Isn't it funny how you are perfectly content with being alone until nobody else is?"
--------------------
linkemapx@hotmail.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.