0

there is text but you cannot select it

check this out

  • How to achieve this?
4
  • Is this a question, or are you telling us to check out a website? Commented Oct 16, 2010 at 12:50
  • 2
    Great way to have noone visit the website you're making. I'd sure as hell pick an alternative. Commented Oct 16, 2010 at 12:52
  • 1
    He's asking how to achieve it, clearly English is not Junaid's first language. Commented Oct 16, 2010 at 13:00
  • possible duplicate of Is there a way to make text unselectable on an html page? Commented Mar 15, 2014 at 6:45

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

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)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.