PDA

View Full Version : How do I disable Copy & Paste in Netscape?


fconijn
10-25-2002, 01:21 AM
Hello all,

I've got a script that works in IE, to disable Copy & Paste: <body oncopy="return false" oncontextmenu="return false" onselectstart="return false" ondragstart="return false">. But it doesn't work in Netscape (4.x). Would anyone happen to know which command NS does understand/obey?

Thanks a lot,
Francis

beetle
10-25-2002, 02:27 AM
Probably not going to understand any of those. To be honest, I don't think NS6 does either...most of those are events that are proprietary to IE.

You can find out which are ans which aren't here
http://msdn.microsoft.com/workshop/author/dhtml/reference/events.asp

jkd
10-25-2002, 02:29 AM
You can't successfully disable copying and pasting in any web browser anyway.

If I want your source, I'll get it.

fconijn
10-25-2002, 06:37 PM
Thanks, beetle. That's a useful page, of which I didn't know it existed.

Jkd: thanks for replying. You're absolutely right that there will always be ways around it if one knows his/her way with source language. But most people don't, and since it was really easy to disable C&P in IE, it would have been nice if a similar command would have been possible for NS.

R.,
Frank