By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,452 Members | 989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,452 IT Pros & Developers. It's quick & easy.

Disable Text Selection

P: 12
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
Nov 28 '07 #1
Share this Question
Share on Google+
2 Replies


acoder
Expert Mod 15k+
P: 16,027
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.
Nov 28 '07 #2

Expert 100+
P: 303
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.
Nov 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.