473,503 Members | 2,075 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE: preventing text selection


Hi,
Does anyone know a way to prevent IE from selecting text when a user
clicks the text while holding shift/ctrl key?

--
Rudy
Jul 20 '05 #1
3 6270


Rafal Rutkowski wrote:
Does anyone know a way to prevent IE from selecting text when a user
clicks the text while holding shift/ctrl key?


<div onselectstart="return false;">

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
On Thu, 06 Nov 2003 13:01:58 +0100, Martin Honnen <ma*******@yahoo.de> wrote:


Rafal Rutkowski wrote:
Does anyone know a way to prevent IE from selecting text when a user
clicks the text while holding shift/ctrl key?


<div onselectstart="return false;">

This is it. Thanks

--
Rudy
Jul 20 '05 #3
In article <sl*********************@mion.elka.pw.edu.pl>,
rr******@mion.elka.pw.edu.pl enlightened us with...
On Thu, 06 Nov 2003 13:01:58 +0100, Martin Honnen <ma*******@yahoo.de> wrote:


Rafal Rutkowski wrote:
Does anyone know a way to prevent IE from selecting text when a user
clicks the text while holding shift/ctrl key?


<div onselectstart="return false;">

This is it. Thanks

All a user has to do to get around this is either turn off script or
view the source and copy/paste from that.

-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7134
by: kj | last post by:
Is there any way to disable text selection in a web page (or at least render it invisible to the user)? If there is a way to control how selected text and its background are rendered, then the...
20
47064
by: kj | last post by:
Is there any way to disable text selection in a web page (or at least render it invisible to the user)? If there is a way to control how selected text and its background are rendered, then the...
16
2998
by: Jeremy Clulow | last post by:
One disadvantage of designing with CSS and without tables appears to be that selecting specific block of text from a web page to copy and paste, or in order for it to be read by a text-to-speech...
2
11196
by: Mark Szlazak | last post by:
The following code fails in Firefox to get at selected text in the right-side textarea. Any help would be appreciated. <html> <head> <script> var agt = navigator.userAgent.toLowerCase();...
19
1296
by: C-Services Holland b.v. | last post by:
Hi all, I've got a datagrid which is readonly and is used to list a resultset from a query. From this set the user can select one and details of that show up. What annoys me is that I can't...
2
1780
by: sourabhmca | last post by:
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...
1
2091
by: rbuczynski | last post by:
I've read two threads that have been closed in which a user posed the question, "Can I disable text selection using CSS?" The responses were either hopeless or critical of the inquirer. I...
4
2747
by: Shenker | last post by:
Hi, I'd need some way to prevent users from selecting text in a web page. I'm only interested in Mozilla Firefox family browsers. I came with this javascript snippet so far: onmousedown =...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.