Search
 
SCRIPT & CODE EXAMPLE
 

CSS

disable right click with css

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

disable right click div

<div>
    This is the Phone and NO ONE SHOULD RIGHT CLICK THIS! >:) </br>
        <img class="tlClogo" src="http://i.imgur.com/0atiS5C.jpg" style="height: 120px; width:120px;">
    </div></br></br></br></br>
    And this is the Keyboard, ofcourse yo can right click this :)</br>
<img src="http://i.imgur.com/xkrKz1X.jpg" style="height: 120px; width:120px;">

$('img').bind('contextmenu', function(e){
    alert("This Logo is protected");return false;
});
Comment

PREVIOUS NEXT
Code Example
Css :: line in css div 
Css :: vuetify input change outline color 
Css :: 3 line after dot in css 
Css :: ionic install font 
Css :: how to scale a bg image acc to size of div 
Css :: ie11 flex 1 
Css :: css transparent background color 
Css :: row reverse grid 
Css :: margin 0 auto 
Css :: how to margin placeholdr text 
Css :: width defined by content css 
Css :: inline text and image 
Css :: css styling images 
Css :: color code for cyan 
Css :: bootstrap create full screen background image 
Css :: move bullets in css 
Css :: css text alignment 
Css :: css transform origin 
Css :: Pack lines toward the center of the flex container 
Css :: scroll padding top in css 
Css :: laravel asset css not found 
Css :: css overwriting styles 
Css :: how to change the position of a button in css 
Css :: change image with css 
Css :: calendar api 
Css :: css animation linear 
Css :: how to make scroller show only on hover of container 
Css :: flexbox properties css 
Css :: linear gradient not covering entire page 
Css :: css scrollbar width 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =