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.


10 Comments to “Disable select in Mozilla Firefox”

  1. Prashant Deshmukh 24 April 2009 at 1:49 pm #

    this is very good kind of information

  2. Leo 16 June 2009 at 10:04 pm #

    This information was very helpful! Thank you very much!

  3. mark 31 July 2009 at 1:09 am #

    This is THE script where I so long was looking for !! 🙂

  4. css gallery ajax 8 September 2009 at 6:12 pm #

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

  5. rcdmk 12 September 2009 at 2:42 am #

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

  6. Jan 22 September 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.

  7. Mangesh5588 8 October 2009 at 4:43 pm #

    good budy. keep it up. it works nicely.

  8. DIVI 22 October 2009 at 6:54 pm #

    Thanks so much!! this has worked

  9. bee 17 February 2012 at 12:41 am #

    Thanks so much for the tip 😡 keep doing your great work ,#

  10. Cyn 2 March 2012 at 1:16 pm #

    Thank you thank you!!

Leave a Reply