C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Prevent copy and paste on the browser


Posted Date: 22 May 2008    Resource Type: Code Snippets    Category: Security
Author: raviMember Level: Gold    
Rating: Points: 10



paste the content of

Responses

Author: ravi    03 Jun 2008Member Level: Gold   Points : 2
code:

paste the below code in script tags

if (typeof document.onselectstart!="undefined") {
document.onselectstart=new Function ("return false");
}
else{
document.onmousedown=new Function ("return false");
document.onmouseup=new Function ("return true");
}



Author: ravi    11 Jun 2008Member Level: Gold   Points : 0
is no one interested in this code???


Author: komaladevi    11 Jun 2008Member Level: Gold   Points : 1
can you please explain littlle bit more with comments because i dint find the entire code in this section


Author: Kapil Dhawan    16 Jun 2008Member Level: Gold   Points : 1
Hello Mr Ravi,
Thanks for sharing your knowledge with us.
nice piece of code.
Keep It up
Keep Posting
Regards,
Kapil


Author: Mahesh H Shivaswamy    16 Jun 2008Member Level: Silver   Points : 1
hi ravi :), where i've to paste this code ,
where i've to call this , please explain me little more .


Author: Mahesh H Shivaswamy    16 Jun 2008Member Level: Silver   Points : 2
yeah i tried it , it;s working thanks :)


Author: ravi    02 Jul 2008Member Level: Gold   Points : 1
paste the above between script tags and place the script tags in head tags


Author: Gunarathinam.M    02 Jul 2008Member Level: Gold   Points : 1
Cool... Its working fine and useful one too.

Keep rocking.


Author: Raj Kumar Prajapati    27 Aug 2008Member Level: Bronze   Points : 1
Hello Mr Ravi,
Thanks for sharing your knowledge with us.
nice piece of code.
Keep It up
Keep Posting
Regards,
RAJ PRAJAPATI



Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to create Cookie in button click
Previous Resource: Find Currently Logged-in User
Return to Discussion Resource Index
Post New Resource
Category: Security


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use