Latest posts
-
Add a Copy code button inside
$(document).ready(function() { // Array of 50 different messages var messages = [ “Nice try!”, “You can’t do that!”, “No copying allowed!”, // … (other messages) ]; // Disable cut copy paste $(‘body’).on(‘cut copy’, function(e) { showRandomNotification(messages); }); // Disable mouse right click $(“body”).on(“contextmenu”, function(e) { showRandomNotification(messages); return false; }); // Function to display a random…