Hi
Can anybody help me to disable mouse left click on the page. actually i want to disable mouse left click, so that any body can't copy any content from my site.
Here i am using following code.
<script language="javascript">function noLeftClick()
{
if (event.button==1)
{
//alert('Not allowed')
a;
}
}
document.onmousedown=noLeftClick
script>
This is fine, But how to disable Ctrl+A to select the content.


joakim wireen46 reputationPosted Apr 28, 2009, 12:12 AM EDT
Keep in mind that this won't be allowed in all browsers. And additionally you can disable most client sided scripting languages.
adiki geetanjali2 reputationPosted Nov 7, 2009, 12:47 AM EST
this code is not working in Firefox.
Event is not defined is the error.
Ravi PanaraRank #7,641 · 237 reputationPosted Feb 25, 2010, 7:37 PM EST
hope it works foy you.
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 8:23 PM EST
Disable Click on Page
Click anywhere on the page
mark the answer if it helps you
Lalit MRank #1,186 · 1.5K reputationPosted Feb 25, 2010, 9:26 PM EST