Sunday, May 31, 2009

[phpXperts] Re: How to disable right mouse click in Opera browser?



if u want to off right click u can use following java script function as far as i know.
<script type="text/javascript" language="javascript">
var message = "function disabled";
function rtclickcheck(keyp)
{
if (navigator.appName == "Netscape" && keyp.which == 3)
{
alert(message);
return false;
}
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2)
{
alert(message);
return false;
}
}
document.onmousedown = rtclickcheck;

</script>

--- In phpexperts@yahoogroups.com, S.M. Saidur Rahman (রানা) <rana_0036@...> wrote:
>
> Hi experts
> How can i disable right mouse click and Ctrl+c control by using javascript? If any solution please share with me.
>
> Thanks
> Rana
>

__._,_.___
Visit phpXperts website at www.phpxperts.net
Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Yahoo! Groups

Auto Enthusiast Zone

Auto Enthusiast Zone

Car groups and more!

.

__,_._,___

No comments: