RSS
people

Disable select in Mozilla Firefox



This post is to teaching a simple way on how to disable the select on the mozilla firefox. As I know, if you want to disable select in the Internet Explorer(IE), you may using the javascript onselect event to return a “FALSE”. This method will be only work for IE but not Firefox.

Below is the method on how to disable user to select your website content.

<body style="user-select: none; -khtml-user-select: none; -moz-user-select: none;">

Insert the style inside the body tag inside your HTML will be solving your problem.

Cheer~~!

8 Responses to “Disable select in Mozilla Firefox”

  1. Prashant Deshmukh said:
    April 24th, 2009 at 1:49 pm

    this is very good kind of information

    1. Leo said:
      June 16th, 2009 at 10:04 pm

      This information was very helpful! Thank you very much!

      1. mark said:
        July 31st, 2009 at 1:09 am

        This is THE script where I so long was looking for !! :-)

        1. css gallery ajax said:
          September 8th, 2009 at 6:12 pm

          yes thats a boom man.My desire has complete now thanks

          1. rcdmk said:
            September 12th, 2009 at 2:42 am

            Hi man. The only problem is that all of the elements became unselectable, even the textboxes.

            1. Jan said:
              September 22nd, 2009 at 12:05 pm

              And, they can still do Edit -> Select All, then Edit -> Copy.

              I would look forward to a way where this was not possible either.

              1. Mangesh5588 said:
                October 8th, 2009 at 4:43 pm

                good budy. keep it up. it works nicely.

                1. DIVI said:
                  October 22nd, 2009 at 6:54 pm

                  Thanks so much!! this has worked

                  Leave a Reply