Niko
  • Administrator

      Reputation : 319
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    Right-click locked

    Description


    If someone click with the right button of their mouse it will block them yes

    Set up


    Hello,

    it i very easy... Just paste this code in your javascript panel (inside the AC panel)

    Code:
    var message=""; function clickIE() {if (document.all) {(message); return false}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message); return false}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS} else {document.onmouseup=clickNS; document.oncontextmenu=clickIE} document.oncontextmenu=new Function("return false")


    Technical problems


    The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

    Thanks, the staff
    For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...


    Friendly,
    The team of the Forum of Codes.



    Niko wants you in the team Guest

    Community manager and Administrator at Forumattivo.com

    Finish!
    • Veteran staff member

        Reputation : 4
        Registered on : 2012-02-25
        Posts : 69
      Nice code :D

      MartinoPio
      • Veteran staff member

          Reputation : 14
          Registered on : 2012-02-25
          Posts : 98
        Great! But we manage to make web master copy / paste the same xD

        BlackNite
        • ***


            Reputation : 5
            Registered on : 2012-04-07
            Posts : 43
          nice I like it

          Nick
          • Manager

              Reputation : 20
              Registered on : 2012-04-01
              Posts : 407
            It's a helpful code. Good one.



            Right-click locked 15px10