Web Design Forum: can someone tell me how they disable the right click function? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

can someone tell me how they disable the right click function?

#1 User is offline   sanford2011 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 25-July 11
  • Reputation: 0

Posted 15 September 2011 - 11:55 AM

I've seen certain site that , when you right click , it brings up a popup that says " this function is not available"

could someone tell me how they achieve this?
Do you write this is the CSS ?

could someone post a link to a tutorial if you know where I can learn how to do this , please.
0

#2 User is online   zed 

  • Web Guru
  • Group: Moderators
  • Posts: 4,941
  • Joined: 25-May 10
  • Reputation: 703
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 15 September 2011 - 12:25 PM

http://www.dynamicdr.../dynamicindex9/
0

#3 User is offline   takeroot 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 18-September 10
  • Reputation: 0
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 15 September 2011 - 12:44 PM

This feature isn't something I've seen on a site for a few years and for good reason. Disabling the right click is not only annoying to your users but also fairly ineffective - they can just turn Javascript off or look at the source code and copy images/text from there.
0

#4 User is online   MikeChipshop 

  • Small but imperfectly formed
  • Group: Moderators
  • Posts: 7,044
  • Joined: 19-April 10
  • Reputation: 503
  • Gender:Male
  • Location:Scotland

Posted 15 September 2011 - 12:58 PM

If you absolutely have to do it then follow zeds advice!

However, please re-think why you'd want to take away the option. many many users use this as an extra navigation tool and you're not going to stop people saving images or looking at the code. the only thing that removing right click does is ruin accessibility.
0

#5 User is offline   davep 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 441
  • Joined: 05-June 09
  • Reputation: 13
  • Gender:Male
  • Location:Kokkola, Finland
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 16 September 2011 - 09:25 AM

<fatuous comment> and if you turn your mouse upside down it still works clicking the right button cos now it's the left one</fatuous comment>
0

#6 User is offline   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,816
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 05 October 2011 - 05:44 PM

View Postsanford2011, on 15 September 2011 - 11:55 AM, said:

I've seen certain site that , when you right click , it brings up a popup that says " this function is not available"

could someone tell me how they achieve this?
Do you write this is the CSS ?

could someone post a link to a tutorial if you know where I can learn how to do this , please.


It's the most god awful way to "protect" (said in the loosest sense possible) your content. If I want to download an image I could take the whole 2 seconds to turn off JavaScript to remove your silly popup.

It's both unecessary and looks hughly un professional nowadays - avoid it.
0

#7 User is offline   GigafishLabs 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 25
  • Joined: 06-April 12
  • Reputation: 0
  • Gender:Male
  • Location:London
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 09 April 2012 - 11:02 PM

And even if someone does not know that disabling javascript works, he can always print a screen and take what he wants. The best way to protect content is to give it away for free.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users