Jump to content

Dezactivare Functie Ctrl + U / Inspect Element?


Recommended Posts

Posted

Cum spune si titlul, vreau sa fac ca pe max-cs.ro, acolo logat, ori nelogat, tot nu poti da ctrl + u, inspect element..vreau si eu acel cod

 

Multumesc.

  • Downvote 1

  • Moderators
Posted

Pentru a dezactiva ctr+u:

<script>
document.onkeydown = function(e) {
        if (e.ctrlKey && 
            (e.keyCode === 67 || 
             e.keyCode === 86 || 
             e.keyCode === 85 || 
             e.keyCode === 117)) {
            alert('not allowed');
            return false;
        } else {
            return true;
        }
};
</script>
  • Downvote 1
Posted

Lol mie imi merge sa dau inspect element. 

                                                                                    jocuri-468x60.png

                   

                                                                                                   Recomand cu incredere HZone Romania - Webhost Calitate Maxima 

Posted

 

globalTemplate, inainte de

</head>

Multumesc Courage :) !

                                                                                    jocuri-468x60.png

                   

                                                                                                   Recomand cu incredere HZone Romania - Webhost Calitate Maxima 

Posted

Dacă doriți ca în locul textului „not allowed”, să apară „Nepermis”:

<script>
document.onkeydown = function(e) {
        if (e.ctrlKey && 
            (e.keyCode === 67 || 
             e.keyCode === 86 || 
             e.keyCode === 85 || 
             e.keyCode === 117)) {
            alert('Nepermis');
            return false;
        } else {
            return true;
        }
};
</script>
  • Upvote 1
  • Downvote 1
  • Moderators
Posted

Unde ai bagat scriptul?

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.