WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Rejected Disable Right Click Sat Jul 24, 2010 9:17 am

verrell123

verrell123
Registered Member
Registered Member
This tutorial will help you disable right clicking on your web pages, Wink

Disable Right Click Script

This script will disable right clicking on your web pages.
Code:

<body oncontextmenu="return false"</body>

When this is added, your visitors can not right click on your web page.
This is like a silent version of disabling right clicking.

Pop Up Message After Right Click To Disable It

This
script will disable right clicking on your web pages, and everytime you
right click, a pop up message box will appear. Ofcourse, you can modify
the text that will be displayed in the pop up box.

Script :
Code:
 function Plan() {
alert('Text Here');
 return(false);
}
document.oncontextmenu = iPlan;


Find this part in the script, and edit the bold part, to edit the text that will be displayed in the pop up box.

{ alert('Text Here');

See This Example Page
Example Page



Last edited by ankillien on Wed Aug 04, 2010 4:59 pm; edited 2 times in total (Reason for editing : Add Example Page)

http://www.freshartz.co.cc/

2Rejected Re: Disable Right Click Sat Jul 24, 2010 4:46 pm

Unknown Data

Unknown Data
Registered Member
Registered Member
Well It's a nice tutorial, but the script can be cheated - a person can just press CTRL and C and the text or anything will the be copied. If they want the to copy a picture they can just use the print screen trick, and then they got everything. Just a remember to people so they don't think they safe. But I'll think you'll never could get 100 % safe, there would always be a way to get material, if a person really want it.

http://woops.dk

3Rejected Re: Disable Right Click Sat Jul 24, 2010 4:53 pm

verrell123

verrell123
Registered Member
Registered Member
Unknown Data wrote:Well It's a nice tutorial, but the script can be
cheated - a person can just press CTRL and C and the text or anything
will the be copied. If they want the to copy a picture they can just use
the print screen trick, and then they got everything. Just a remember
to people so they don't think they safe. But I'll think you'll never
could get 100 % safe, there would always be a way to get material, if a
person really want it.

I know people can use CTRL and C but if someone who don't know it, he will be confused!

http://www.freshartz.co.cc/

4Rejected Re: Disable Right Click Sat Jul 24, 2010 5:10 pm

RockerMan

RockerMan
Technician
Technician
I think I have seen this tutorial on here before...

It is really pointless, there are 1000 ways to copy content without right clicking.

http://www.graphics-post.com/

5Rejected Re: Disable Right Click Sat Jul 24, 2010 5:21 pm

Green CoW

Green CoW
Graphic Designer
Graphic Designer
Well it's just to use the "view source" in the browser menu, then you have the page source. If I would like to know some site source I could even delete that JavaScript in the FireBug, and then it's ok to right click again.
Basically it's really one of those pointless script..

6Rejected Re: Disable Right Click Sat Jul 24, 2010 5:38 pm

RockerMan

RockerMan
Technician
Technician
You have just hit the nail on the head GC Very Happy

http://www.graphics-post.com/

7Rejected Re: Disable Right Click Wed Aug 04, 2010 4:59 pm

ankillien

ankillien
Administrator
Administrator
The script is not much useful in itself, so it will be rejected.

Tutorial Rejected

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum