Disable right click function on website

M

Michelle

How does one disable the right click function on ones website? TIA
ps. when i try to post q's to this DG it doesn't always work..
 
D

DavidF

Which version of Publisher are you using? The right click option to save a
picture and to open a link in another tab is already disabled in Pub 2003
and 2007 sites in IE. In fact, many of us would like to be able to 'enable'
that functionality. What are you trying to do? What is left available under
the context menu of a right click that you are trying to prevent?

I can provide a javascript code snippet to you that will disable right
click, but there is a workaround to it, and it mostly just alienates people.

DavidF
 
M

Michelle

Hi David
I'm using Publisher 2007. I haven't published to the net yet so I wasn't
aware that the right click option was already disabled.
So in layman's terms, if a visitor wants to save text or a photo from a
Publisher 2007 website they can't?
Out of interest, why *is* it disabled?
Thanks.
 
J

John G.

Nothing you can see on a display is safe from being saved so it is of
little use whether Right click is disabled or not.
For instance PrtScrn will put the current window on the clipboard to paste
anywhere.

John G.
 
D

DavidF

Right click is disabled because of the VML in the Publisher coding engine as
I understand it. It doesn't stop right clicking in FireFox and only works in
IE.

As John G suggested, there is no way to stop people from taking anything you
put on your site. By viewing your pages they have already downloaded
everything on your page.

DavidF
 
M

Michelle

Thanks for the clarification, both of you.

DavidF said:
Right click is disabled because of the VML in the Publisher coding engine as
I understand it. It doesn't stop right clicking in FireFox and only works in
IE.

As John G suggested, there is no way to stop people from taking anything you
put on your site. By viewing your pages they have already downloaded
everything on your page.

DavidF
 
M

MAURH

Michelle,

Just to add to John G and DavidF's comment, it might be useful to know that
all your work is covered by the 'Copyright' laws, as long as it is your own.
Put your name, year and copyright symbol ©, at the bottom of your page, I
put mine on the Home page. Whilst it won't stop people copying your work if
they really want to, it can make them think twice about copying it and using
it. You could also print off a copy of your work, mail it to yourself but
don't open it and keep it somewhere safe. The work is then protected from
the date it was mailed.

Of course the copyright laws are complicated and expensive to prove and you
would probably never want to go there, but by displaying the symbol etc., it
could make others think twice about going there too.

Maureen
 
D

DavidF

I don't think you should, but this javascript snippet seems to work:

---------------------

<script language=JavaScript>
<!--

//
//

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
 

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