Flux rss

Disabling right click on your webpage

Published by deri58, last update on Tuesday October 14, 2008 02:59:17 PM by deri58

Disabling right click on your webpage






More than often, while trying so save some text or pictures from a website, you might wonder why your right click is not allowed. This is a simple JavaScript code that has been inserted in the website document to prevent copyright infringement issues, or to protect the source of your pictures. If you want to activate this option on your own website, here is a little tutorial on how you can do so, using JavaScript codes.

Note:

You should insert the following code in the head of your HTML document, that is, between the <HEAD></HEAD> tags.

<SCRIPT LANGUAGE="JavaScript">
<!-- Disable
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//-->
</script>



You should however note that this procedure is not idiot proof. There are several ways a user can still copy the contents on your website. If they decide to disable the JavaScript on their web browser, they will be able to access your contents, with or without the right click. Hence, I would strongly suggest you to edit the copyright close on your pictures as well as your contents.
Remove program listing from right click menu. Hello, I would like to remove an option from the list of programs that show up in the right click/open with/choose default programs/other programs. Running Vista. I know there is no real reason for this other than being REALLY OCD! If anyone can help ... en.kioskea.net/forum/affich-10500-remove-program-listing-from-right-click-menu
Mycomputer right click option Hello, in my xp when i open mycomputer C: ,D: , E: all 6drive not open throw dubble click... when i right click on them it first option is Search OR Auto the third option is open when i click on it it is open. I want first option is Open.. for this i... en.kioskea.net/forum/affich-25069-mycomputer-right-click-option
I cant right click i dont have any desktop ic Hello, There is something wrong with my cpu. when i start it i cant see anything but the backround and mouse. i cant right click on my desktop either. i have had to run everything through taskmanager. i need help fast. i dont haveicons or start menu. en.kioskea.net/forum/affich-37610-i-cant-right-click-i-dont-have-any-desktop-ic
Removing the welcome logo when starting Windows XPRemoving the welcome logo when starting Windows XP Here is a simple tip on how removing the XP logo and speeding up Windows XP booting time. 1.Select My Computer icon and right click on it. 2.On the menu select the Properties... en.kioskea.net/faq/sujet-511-removing-the-welcome-logo-when-starting-windows-xp
How to add signature under ThunderBirdHow to add signature under ThunderBird Thunderbird allows you to input your signature or a text at every mail that you send automatically. To create your signature , first of all, right click on your desktop and select “NewContent... en.kioskea.net/faq/sujet-583-how-to-add-signature-under-thunderbird
Restrict Messenger start up without passwordRestrict Messenger start up without password First of all, exit on Windows Messenger by right click on small icon and select “Exit”. Open Windows Live Messenger and uncheck the box “Remember my password”. In the menu MSN,... en.kioskea.net/faq/sujet-1090-restrict-messenger-start-up-without-password
Mouse right clickHello, i just bought a gigabyte mouse but the right click is not working.i have a pentium 3 Acer.i tried everything that needed to be but still its not good..i need your help in this! en.kioskea.net/forum/affich-12361-mouse-right-click
No desktop iconsHello,WHEN I BOOT THE LAPTOP, IT BOOT NORMALLY UNTIL IT REACHES THE WALLPAPER. THEIR IS NO RESPONSE FOR RIGHT-CLICK. WHEN I PRESS CTRL+ALT+DEL IT SAYS TASKMANGER IS DISABLED BY ADMINISTRATOR. en.kioskea.net/forum/affich-30163-no-desktop-icons
Error when open C drive (Double click).Hello, Error when open C drive (Double click). It prompt out a message . I only can open C drive by right click and use option open and explore. I'm not sure my pc still infected by virus or not... en.kioskea.net/forum/affich-20709-error-when-open-c-drive-double-click
Download FileMenu ToolsThe use of the right click or the contextual menu in the explorer Windows are very useful to make easier the management of your files and files. He notably includes function "to Send towards", but problem it is that the files of destinations are... en.kioskea.net/telecharger/telecharger-492-filemenu-tools
Download ShellExViewShellEXView is a free tool used to install and manage shell extensions in Windows.Shell extensions enable users to view program specific menus when right clicking various file types.The ShellExView utility displays the details of shell extensions... en.kioskea.net/telecharger/telecharger-884-shellexview
Download Change ExtensionThis small software, allows to change the extension of a file, with a simple right click on the current file. It is no more needed to modify the options in the file options, every time you would like to modify an extension, then to restore the options... en.kioskea.net/telecharger/telecharger-1693-change-extension
Ebadi rights group warns Iran on Internet crime billIranian Nobel peace laureate and women rights activist Shirin Ebadi speaks during a press conference in Tehran. Ebadi has condemned a draft bill on Internet crime, warning that it could boost the number of executions in the Islamic republic. The... en.kioskea.net/actualites/ebadi-rights-group-warns-iran-on-internet-crime-bill-10554-actualite.php3
Windows networking To configure each computer, simply go to the control panel, then double-click "network connections" and right-click "local area connection", then choose properties! The local area connection window displays the various protocols installed. To be able... en.kioskea.net/configuration-reseau/configurer-reseau-windows-xp.php3
Windows - Diagnostic tools On the Desktop, when you right-click on a drive and go to Properties, the "Tools" tab gives you access to three tools: Defragmenter (c:\windows\defrag.exe) Scandisk (c:\windows\command\scandisk.exe) Backup (c:\program en.kioskea.net/win/winastdi.php3
Connecting several computers to a network on Windows In order to configure each computer, you need only go to the control panel, then double-click on "network connections", and then right-click "local network connection", and select properties! The various protocols installed are shown in the local... en.kioskea.net/pratique/reseau.php3