0

there is text but you cannot select it

check this out

  • How to achieve this?
Moon
  • 19,518
  • 56
  • 138
  • 200
  • Is this a question, or are you telling us to check out a website? – Oded Oct 16 '10 at 12:50
  • 2
    Great way to have noone visit the website you're making. I'd sure as hell pick an alternative. – LukeN Oct 16 '10 at 12:52
  • 1
    He's asking how to achieve it, clearly English is not Junaid's first language. – ocodo Oct 16 '10 at 13:00
  • possible duplicate of [Is there a way to make text unselectable on an html page?](http://stackoverflow.com/questions/69430/is-there-a-way-to-make-text-unselectable-on-an-html-page) – davidcondrey Mar 15 '14 at 06:45

2 Answers2

2

You can do it easily with jQuery. Check this demo sources, for example:

$("#sortable").disableSelection();

There's a post from jquery forum explaining the situation around disableSelection. Looks like it's 'undocumented' for a long time already.

Nikita Rybak
  • 67,365
  • 22
  • 157
  • 181
1

There are plenty of scripts available on the net, the one proposed by @mellowsoon is one of them.

However remember that it does not make text selection impossible, it just makes it difficult. Text selection can be "re-enabled" by the user by just disabling javascript or from the source by page.

Also such not selectable text is not very usable and may leave users frustrated.

If you are concerned with someone copying your content without your permission, use appropriate licenses and copyright, rather than such techniques (or use technologies like flash if applicable, but even here there are OCR techniques that can help copying text)

Nivas
  • 18,126
  • 4
  • 62
  • 76