I have a code that prevents highlighting, but it only works on IE
Does anyone know of a script that will do the same on Netscape?
ebgreen
1:44 pm on Jan 28, 2002 (gmt 0)
<body onselectstart="return false">
Does anyone know of a script that will do the same on Netscape?
wardbekker
2:58 pm on Jan 28, 2002 (gmt 0)
Create an image of the text ;-)
You could put the text in a span and ignore all left mouse clicks.
Personally, I wouldn't recommend this as an method trying to prevent users to copy your text if that's what you're trying to do.
ebgreen
3:05 pm on Jan 28, 2002 (gmt 0)
Do you know where I could look for the code I mentioned for Netsacpe?
wardbekker
3:12 pm on Jan 28, 2002 (gmt 0)
<span onMouseDown="return false">
TADAAA ;-)
ebgreen
3:23 pm on Jan 28, 2002 (gmt 0)
Does this work the same way as <body onselectstart="return false">, but on Netscape also?
Also, where do I place this code?
wardbekker
3:28 pm on Jan 28, 2002 (gmt 0)
yes.
<span onMous... > Put text here </span
ebgreen
4:03 pm on Jan 28, 2002 (gmt 0)
This does not prevent someone from using the left click, does it?
wardbekker
6:11 pm on Jan 28, 2002 (gmt 0)
I would recommend experimenting yourself with the various possibilities. I think you find a quick answer to questions such as the "left click". ;-)
ebgreen
10:41 pm on Jan 28, 2002 (gmt 0)
wardbekker, where in the code do I place this?
scotty
6:58 am on Jan 30, 2002 (gmt 0)
D'oh. When I disable the Javascript from the browser, then none of these methods works... If you want to prevent your users copying and pasting the web site content, it might not be an effective solution.
ebgreen
7:16 am on Jan 30, 2002 (gmt 0)
Explain how to do this. I am unfamilar with this. Thanks for the help.
wardbekker
9:44 am on Jan 30, 2002 (gmt 0)
Ebgreen, I would recommend you to do some reading about the basics of javascript. I could explain the specifics here, but after reading a good book about javascript, you can figure it out yourself ;-)
ebgreen
1:05 pm on Jan 30, 2002 (gmt 0)
All I was asking is where the code is placed and what it does. This only takes two sentences. I don't need a javascript book for that?