Question by  senthil34 (169)

How do you block the right click on the dreamweaver site?

I need to block the right click on the dream weaver site.


Answer by  Christian9247 (5042)

It's a piece of Java script that blocks the right click on a mouse when visiting a website. You can block the action before the Dreamweaver site can react and by doing this you need to add some Java to your script handlers, (function click(event)). Remember this and all your problems will be solved. With Java you can do anything!


Answer by  ahsanmahmoodawan (1169)

you have to use a java script for this purpose and this script is too long i can't paste it here :( moreover make a notepad and open it write these words i can't write this script here this isn't allowed increase space of your answer or do any other thing


Answer by  Mturk85 (133)

To block the right click on web page, you can put the javascript codes below between < head > and < /head>: < script language="JavaScript"> document.oncontextmenu=new Function("event.returnValue=false;"); //Block the right click function document.onselectstart=new Function("event.returnValue=false;"); //Block the right copy function < /script>


Answer by  gigo (1706)

There is no option to disable the right click but you can include a javascript like this: function click(e) { if(document.all) { if(event.button == 2) { return false; }}}


Answer by  gigo (1706)

With JavaScript it should be possible to block the right click before the dreamweaver site can react on it. To do that, add to your site a java script event handler (function click(event)). You can check this event objekt for the pressed button value. 1 is left, 2 is right, 3 is both together.

You have 50 words left!