Forum Moderators: open

Message Too Old, No Replies

how to disable save as and print option of menu bar

disable save as and print option of menu bar

         

anibis

10:27 am on Dec 13, 2003 (gmt 0)

10+ Year Member



Hello there,

Can any one tell me how to disable "save as" and "print" option of menu bar?

I tried --- <meta http-equiv="imagetoolbar" content="no"> ---
and --- oncontextmenu="return false" ondragstart="return false" onselectstart="return false" ----

But if I go through File->Save As or Print, the document gets printed and saved.

I want to prevent this.

Can any one help me out in this issue?

Thanks
Anirban

dcrombie

11:44 am on Dec 13, 2003 (gmt 0)



Not possible. You could open the site in a window with no toolbars, but if someone really wants to save or print then they will find a way.

Basic rule is - if you have something on the web that shouldn't be saved or printed then you should take it off the web. This goes for HTML, CSS, images, etc..

divaone

12:37 pm on Dec 13, 2003 (gmt 0)

10+ Year Member



see this thread:

[webmasterworld.com...]

there are programs that offer this option, but (1) nothing is absolutely failproof and (2) disabling the print function on one single page can affect the user's visits to other pages as well.

as above, its best to simply not put it in print, via paper or the web, if its too important.

IeuanJ

4:01 pm on Dec 17, 2003 (gmt 0)

10+ Year Member



1) Why would you want to?

2) You cannot disable it only for your page, it will then effect every other page visited that session until the user finds a way to set it back.

3) If a user wants to print a page from your site and finds it disable he will get first confused and if he works out you did it he will get pissed off and leave.

TheDoctor

1:33 pm on Dec 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use CSS:


@media print{
body {display:none;}
}

This would produce a blank page if the user tried to print it, but it doesn't work in older browsers.

Nor would it stop a user from using a pencil and writing down on a piece of paper what (s)he sees on the screen.