Nokia C3 Android One - Specification | Mobile Details

Nokia C3 Make the most of each day with Nokia C3. The 5.99”(15.2 cm) HD+ screen is big on brilliance, so every detail of work and play is c...

Disable Right Click on selected Div or Span Section | How To

Disable Right Click on DIV Section

If you want a div tag to be placed in the page of your website and no matter can be copied in the same div tag, then it can happen.

How to do -

>> First of all, you should open the theme of your website in HTML mode.
>> Now paste the code below anywhere in <body> ... </body>.

 <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'/>
        <script>//<![CDATA[
            $('.disableclick').bind('contextmenu', function(e) {
                return false;
            }); 
//]]></script>

>> Now save the theme.
>> Now to turn off  right click option inside the div tag that you want, paste the class = "disableclick" in that div tag.

Example - <div class = "disableclick"> something is a mater </div>

>> By doing this you can disable right click option.


No comments:

Post a comment