[DONE]None selectable text?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

[DONE]None selectable text?

Post by JellyFish »

How could I make the text inside an element not selectable, in other words text that can't be selected by the client? Using javascript, css or html.

That's pretty muchit.
Last edited by JellyFish on Tue Mar 13, 2007 10:16 pm, edited 1 time in total.
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

a clear div over the top would do the trick, as long as its positioned to suit all resolutions.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

Nice. If there are any other solutions I'd be abliged aswell.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Or make it an image.
(but that causes other problems of course).

May I ask the reason why you want to make the text non-selectable?
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

I was trying to imitate a button.

I decided agents it. Thank anyways guys. :D
Post Reply