Javascript code please...?

G

Gaffer

Does anyone know the JavaScript code to stop people left or right clicking
on my page? I would like it so that they cannot left click to highlight my
text/images or right click to copy it, but with no cheesy pop-up?

Thanks..!


_______
Gaffer
 
S

Sid Ismail

: Does anyone know the JavaScript code to stop people left or right clicking
: on my page? I would like it so that they cannot left click to highlight my
: text/images or right click to copy it, but with no cheesy pop-up?


Wanna keep your stuff a secret? Don't put it on the www. The right-click
thingie is a waste of time. It can be bypassed as easily as a 10-year old
can drive a car.

Sid
 
K

Kris

Gaffer said:
Does anyone know the JavaScript code to stop people left or right clicking
on my page? I would like it so that they cannot left click to highlight my
text/images or right click to copy it, but with no cheesy pop-up?

To prevent people from copying your code/images? The moment ones browser
visits your webpage, it copies everything to the harddrive. What makes
you think you can prevent copying when it has already happened?

To prevent people from going back a page (or fill in random browser
functionality here)? There are at least 3 alternative ways of achieving
the same functionality in ones browser, of which I think through the
contextual menu is even the least known.

if you want to protect any rights you have to material you publish and
own, consult your laywer for applicable laws, not alt.html or any other
place for browser-crippling scripts that don't work.

Googling for "what is copyright" should get you started.
 
G

Gaffer

Sid Ismail said:
: Does anyone know the JavaScript code to stop people left or right clicking
: on my page? I would like it so that they cannot left click to highlight my
: text/images or right click to copy it, but with no cheesy pop-up?


Wanna keep your stuff a secret? Don't put it on the www. The right-click
thingie is a waste of time. It can be bypassed as easily as a 10-year old
can drive a car.

Sid


I would still like the code though..

I'd like it so it's like this on my pages:
http://www.rangers.premiumtv.co.uk/page/Home/0,,5,00.html

Thanks..!

_____
Gaffer
 
M

Matthias Gutfeldt

William said:
o Opening a link in a new window

Never heard of target="_blank", eh?

o Saving the link target

Save? But it's copyrighted material! You can't save it or they'll sic
the RIA on ya.

o Adding to favourites

That's what an "add to favourites" javascript is for.

;-)
Matthias
 
R

Richard

Gaffer said:
Does anyone know the JavaScript code to stop people left or right
clicking
on my page? I would like it so that they cannot left click to
highlight my
text/images or right click to copy it, but with no cheesy pop-up?
Thanks..!

No problem dude. I just click on the file menu and "save as....".
Bingo. Got your entire page and I can take what I want using any html
editor.
 
I

Isofarro

Gaffer said:
Does anyone know the JavaScript code to stop people left or right clicking
on my page?

For Internet Explorer, insert the following at the bottom of the page:

<input type disableclick>

Stops the user left clicking and right clicking.

Don't worry about other browsers, people who use them will break any and
every trick you could possibly come up with. Not worth the effort really.
 
K

Kris

Does anyone know the JavaScript code to stop people left or right clicking
on my page?

For Internet Explorer, insert the following at the bottom of the page:

<input type disableclick>

Stops the user left clicking and right clicking.[/QUOTE]

Now that was mean. :)
 
I

informant

Richard said:
No problem dude. I just click on the file menu and "save as....".
Bingo. Got your entire page and I can take what I want using any html
editor.

Mr. Bullis, the poster was requesting help against people like you. Be
silent unless you can offer advice.
 
O

Owen Jacobson

Matthias said:
Never heard of target="_blank", eh?

So you feel responsible for telling me when I should open a new window?
I find that highly intrusive: if I want a new window, I can get one,
and if I don't want one I really would rather not have one appear just
because you wanted one.

A user in control of their browsing is generally a happy user.
Save? But it's copyrighted material! You can't save it or they'll sic
the RIA on ya.

But it's for personal use under fair-use legislation! I'm saving it so
I can use an excerpt in a paper (with attribution and so on). Or maybe
not, but can you prove it one way or another just because I'm chosing
to save a copy somewhere other than my browser cache?

Pursue copyright violation through legal channels. It's a social
problem, not a technical one.
That's what an "add to favourites" javascript is for.

So, wait, you're going to disable a browser function that was carefully
designed and tested[0] and replace it with something you probably
copy/pasted from someone else's website?



[0] insert IE joke here
 
W

William Tasso

Owen said:
Matthias said:
Never heard of target="_blank", eh?

So you feel responsible for telling me when I should open a new
window?
...
[0] insert IE joke here

/whisper: look in the mirror

It's true that satire and irony are difficult to express in a text only
medium, but I do believe that Matthias left sufficient clues.

YMM(obviously)V
 
O

Owen Jacobson

William said:
/whisper: look in the mirror

It's true that satire and irony are difficult to express in a text
only medium, but I do believe that Matthias left sufficient clues.

YMM(obviously)V

*re-read*

*slowly turn some shade of pink*

Oops. Thanks.
 
I

Isofarro

Owen said:
What, it works, doesn't it? :)

Well, not exactly. Its not valid markup at all. (Which I'm surprised no-one
picked up on). Here's a valid one (since its just an HTML comment really):

<!--[if IE]><input type crash><![endif]-->
 
L

Leif K-Brooks

informant said:
Mr. Bullis, the poster was requesting help against people like you. Be
silent unless you can offer advice.

In this case, "Mr. Bullis" is entirely correct. There is *no* way to
stop people from stealing your site's images, all you can do is make
it harder (and punish them afterwards using the legal system).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Please fix my code 1
Arduino Code Please Help 0
Arduino Code Please Help 0
Help please 8
Help with code 0
My code or GoDaddy problem? 1
Troubles with Fullpage / please help 0
Code sharing 2

Members online

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top