Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable right click 1

Status
Not open for further replies.

KryptoS

Programmer
Feb 7, 2001
240
BE
Hey guy's,

Is it possible to disable right-click in a iframe from the main page?
I know I can program the disable function in the iframepage. But is it also possible to do from the mainpage?
Anyone a sollution?

The One And Only KryptoS
 
No, no, no, no, no.

May I refer you to:[ul]
[li]faq216-4765[/li]
[li]thread216-1155472[/li][/ul]
And the obvious consideration that users can turn off JavaScript.

(I'm assuming you want to disable "View Source", but even if not, firstly:why would you wish to break a user's browser, and secondly: people do browse with javascript turned off.)

<marc>
New to Tek-Tips? Get better answers - faq581-3339
 
I know that it's 'not done' turning of right click on a website and that you can always view the source one way or the other. But it was just a technical question. Just for nothing these sort of stuff

The One And Only KryptoS
 

Cheers - I found it earlier whilst 'Stumbling' for amusement and thought it had some interesting points not usually discussed.



A smile is worth a thousand kind words. So smile, it's easy! :)
 
Although it should be worth pointing out that those scripts are not foolproof, and can easily be bypassed by any vaguely experienced user.

They should not be relied on to stop (as the page so eloquently puts it) "No More Leeching Your Web Images... ... No More Copyinng Your Source Scripts" - there is no 100% guaranteed way to do this other than not publishing them to start with.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
That page comes up as a blank page in IE on my Mac. It comes up as a somewhat misaligned page using NS, although all of the info seems to be there.


mmerlinn

"Political correctness is the BADGE of a COWARD!"

 
mmerlin... I think the blank page on IE for the Mac is actually part of a new campaign they are running... preventing you from "Copyinng" their scripts by not presenting you with any content to copy [smile]

Have a good one!
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top