Display results as :


Rechercher Advanced Search
Latest topics
» New button
Wed Jan 06, 2016 9:14 am by Admin

» Scrolling Widgets
Sat Oct 24, 2015 3:13 am by Admin

» Questions on forumotion
Tue Aug 25, 2015 12:55 am by Admin

» Adding affiliates
Sat Aug 22, 2015 6:57 am by Admin

» hash tagging
Sat Aug 22, 2015 6:43 am by Admin

» Alert system
Sat Aug 22, 2015 6:41 am by Admin

» Facebook for kumari
Fri Aug 21, 2015 1:10 am by Admin

» Countdown for the site
Fri Aug 21, 2015 12:54 am by Admin

» background on top of background
Fri Aug 21, 2015 12:47 am by Admin

» transparent background
Mon Aug 17, 2015 12:34 pm by Admin

Click below for our World Map
 photo Kumari draft4_zpsyulb95s8.png
Switch Accounts

Control Panel

Code: Select Content

Your profile






Friends and Foes



Private messages


PM sent


Topic is being watched

Share | 

 disabling right click on the html pages

Go down 

Posts : 71
Join date : 2014-04-29

PostSubject: disabling right click on the html pages   Mon Aug 10, 2015 10:57 pm

This tutorial will help you disable the right click of the mouse on your html pages.

There are many codes that can help you with this,but am going to give you one script code that will make this possible.

This script code will allow you to disable the right mouse click by adding it between your body tags ~ . And will also display a pop-up message.

<script language=JavaScript>

    //Disable right mouse click Script
    //By Maximus ( w/ mods by DynamicDrive
    //For full source code, visit

    var message="Click Disabled";

    function clickIE4(){
    if (event.button==2){
    return false;

    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    return false;

    if (document.layers){
    else if (document.all&&!document.getElementById){

    document.oncontextmenu=new Function("alert(message);return false")

    // -->

You can modify the code {the bold part below} if you'd like to change the message that will appear in the pop-up box.

Quote :
var message="Click Disabled";

Also,there is another code you can use if you don't want the pop-up box.

Code: Select Content
<BODY oncontextmenu="return false">

Add the attribute above ( oncontextmenu="return false" ) in the first body tag and it will silently disable right clicks from your mouse.

Go to your administration panel=>General Tab=>Forum=>Configuration=>General=>Site description=>Add this code

<script language=Javascript1.2> function ejs_nodroit() { alert('Text Here');
    return(false); } document.oncontextmenu = ejs_nodroit; </script>

You can modify the message you receive when someone right clicks by editing the code's text that says : Text Here

If you would like no pop-up version,you can add this code instead.

<BODY oncontextmenu="return false"</body>
Back to top Go down
View user profile
disabling right click on the html pages
Back to top 
Page 1 of 1
 Similar topics
» Large Pages
» large pages
» Large Pages in T04 Beta3
» DarkStar Developer Jeff Williams On Board to Answer Any Questions
» Limited Edition Masters Of The Universe Art Book at SDCC

Permissions in this forum:You cannot reply to topics in this forum
 :: Your first category ::  Rose :: North :: Codes-
Jump to: