Disable Text Selection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sourabhmca
    New Member
    • Apr 2007
    • 12

    Disable Text Selection

    Hi Friend.
    I have used a frame inside the html page where in I am displaying the content of other html page.. I want to disable text selection of the content inside the frame..
    Can you please show me how to implement "disable text selection" script on such a page.

    Thanx and Regards,
    Sourabh
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Display a transparent (opacity:0) div over the content.

    If you're trying to protect the content with that, I'm afraid it is easily circumvented.

    Comment

    • improvcornartist
      Recognized Expert Contributor
      • May 2007
      • 303

      #3
      You could also use a function to return false. Google 'disable text selection' for examples. Same thing acoder said applies, though: it won't protect content and is easily circumvented.

      Comment

      Working...