473,785 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Right click prevention in Netscape 7

I know many don't like having right click disabled, however this is a
unique case where clients using viewing this particular site will not
be world wide so it's not going to affect too many people.

I have searched google archive for this newsgroup for a solution but
similar posts never received answers.

I have a script that disables right mouse button that works in IE and
older versions of NS but it doesn't work in NS7. Can anyone please
point me to a script that works for NS7.

Thanks.
Jul 20 '05 #1
5 1681
Someone wrote:
I have searched google archive for this newsgroup for a solution but
similar posts never received answers.

I have a script that disables right mouse button that works in IE and
older versions of NS but it doesn't work in NS7. Can anyone please
point me to a script that works for NS7.


Why limit your google searches to this newsgroup... I found several that
worked (well, sort of worked) on my NN 7.1 on the first page of hits:

http://www.google.com/search?hl=en&i...=Google+Search

Just a note, maybe my machine's too slow to implement javascript
quickly, but with my 1 GHz win 98 machine, when I right click on a page
using one of these scripts... the javascript alert message informing me
that right clicking has been disabled does come up... but AFTER the
right button context menu has already appeared, so at least on my
computer these scripts are meaningless, I copy stuff using right click
whenever I want, even when these scripts are in use.

Jul 20 '05 #2
Ivo
"Someone" <so*****@me.com > wrote the following:
I know many don't like having right click disabled,
Sure, the only reason I can fathom why this event is available to a script
at all is so that extra functionality may be provided enhancing the content
in the current context that the default behaviour doesn't. In a few rare not
to say unique cases this may be disabling all functionality, such as for
demonstration sites, sites for young children, the elderly or otherwise
easily confused. All others will only be offended. Sites that aspire a
anonymous audience but offer nothing in return (but perhaps a message in an
alert) when a user expects to cash in on the promise, are by definition
written by people who do not think. You invite guests to your house, make
them feel comfortable, light the fire for them, put up their preferred
music, and deny them a drink.
however this is a unique case
?
where clients using viewing this particular site will not
be world wide so it's not going to affect too many people.
Ah, something like an intranet. Not unique.
I have a script that disables right mouse button that works in IE and
older versions of NS but it doesn't work in NS7. Can anyone please
point me to a script that works for NS7.
Ignorance on the user's side is your only weapon in the anti-rightclick war.
In addition to users being able to drag images to desktops or straight into
their favourite image editors, take screenshots, view sources from their
Alt+F menu (or F10, a lesser known key but quite handy sometimes) or browse
their harddisk to retrieve your files, whatever it is that you wish to deny
your users, these and similar bookmarklets (client-side-*added* scripts,
start at www.bookmarklets.com) nullify any script you have or may be pointed
to:

Enable rightclick: // here and now
javascript:for( i=(f=document.f rames).length;i--;)with(f[i]){document.onmo use
down='return true';document. oncontextmenu=' return
true';document. onmouseup='retu rn true';document. body.onmousedow n='return
true';document. body.oncontextm enu='return
true';document. body.onmouseup= 'return true';}

Strip all script: // involves reload
javascript:for( i=(f=document.f rames).length;i--;)with(f[i]){onerror=funct ion
(){return
true};while((es =document.getEl ementsByTagName ('script')).len gth){es[0].paren
tNode.removeChi ld(es[0]);}es=document. all;for(i=0;i<e s.length;++i){e =es[i];f
or(p in
e){if(!p.indexO f('on')&&e[p]){e[p]=null;}}}docume nt.write(docume nt.documentE
lement.outerHTM L);document.clo se();onerror=fu nction(){return true};}void 0;
Thanks.


You 're welcome,
Ivo
Jul 20 '05 #3
DU
Someone wrote:
I know many don't like having right click disabled, however this is a
unique case where clients using viewing this particular site will not
be world wide so it's not going to affect too many people.

Your justifications are pretty weak. You provide no explanations for
disabling context menus. I'd say you're even contradicting yourself. You
say that a majority of people dislike right-click being disabled,
nevertheless you're going to go ahead with it anyway.
I have searched google archive for this newsgroup for a solution but
similar posts never received answers.

You have not searched a lot or you have not searched well. This is a
frequent question in this newsgroup.

http://jibbering.com/faq/#FAQ4_27
I have a script that disables right mouse button that works in IE and
older versions of NS but it doesn't work in NS7. Can anyone please
point me to a script that works for NS7.

Thanks.


Bug 86193: There is no way to always open the context menu upon
right-click (oncontextmenu? )
http://bugzilla.mozilla.org/show_bug.cgi?id=86193
is an enhancement request amont the most frequently requested, reported
enhancement at bugzilla.

DU
Jul 20 '05 #4


Someone wrote:
I know many don't like having right click disabled, however this is a
unique case where clients using viewing this particular site will not
be world wide so it's not going to affect too many people.
I have a script that disables right mouse button that works in IE and
older versions of NS but it doesn't work in NS7. Can anyone please
point me to a script that works for NS7.


As with IE you should use an oncontextmenu event handler e.g.
<img src="kiboInside .gif"
alt="Kibo inside"
oncontextmenu=" return false;">
--

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

Jul 20 '05 #5
DU
Someone wrote:
I know many don't like having right click disabled, however this is a
unique case where clients using viewing this particular site will not
be world wide so it's not going to affect too many people.

I have searched google archive for this newsgroup for a solution but
similar posts never received answers.

I have a script that disables right mouse button that works in IE and
older versions of NS but it doesn't work in NS7. Can anyone please
point me to a script that works for NS7.

Thanks.

Yesterday, Mozilla.org honored a long time enhancement request so that
scripts no longer can disable right-click context menu, if that is the
user's wish.

Bug 86193: Prevent websites from disabling the mouse right-click context
menu - disallow sites access to Window.oncontex tmenu and friends
http://bugzilla.mozilla.org/show_bug.cgi?id=86193

81 votes!

user_pref("dom. event.contextme nu.enabled", true);

DU

Jul 20 '05 #6

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

Similar topics

11
13726
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right click disable function right(e) { //This function is for Net 4. if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) {
4
9675
by: Lijun Yang | last post by:
Hey, I am able to disable the right mouse button on images for netscape and IE but it won't work for Opera. Here is the code: // start of the code var clickmessage="Sorry, you don't have permission to right-click." function protectImages () {
5
24686
by: Robert Oschler | last post by:
Hello, In my web pages I attach the OnClick event. However this doesn't seem to intercept right-click events. Is there another event I need to attach or is it something else? thx -- Robert Oschler
2
1522
by: Saravanan K | last post by:
Hi, I am having a problem with right click option with Netscape 4.7. I am unable to make the Text field read-only using the Onfocus = "this.blur()" but user is able to use the right click option which will open the edit menu (popup menu) and he is able to cut, copy paste options. Please send me solution for this.
21
6590
by: news.btinternnet.com | last post by:
I can do this in IE myLink.click(); //Invoking the handler as if the user had clicked on the link themselves. I need to be able to do the same in Netscape Navigator, can anyone help ?
11
13951
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to all users (btnSendAll). When user hits enter, I also simulate the effect of clicking button (btnSend). However, what I found btnSend doesn't fire (unless I click on the button). The postback function I call is as follows: function...
7
6205
by: Robert | last post by:
Can I programmatically disable the right click context menu?
12
2011
by: Prophet | last post by:
What is the command to prevent "right clicking"
2
2816
by: chrisp | last post by:
I have an ASP.NET 2 page with a button that causes a credit card transaction to be authorised. The authorisation procedure may take a few seconds and so I want to prevent the user from clicking the button again (or at least detect that an authorisation is already in progress and do nothing) while the first authorisation is in progress. Can someone help me out? I've tried the following but none of the solutions work: 1) Disabling the...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
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 we have to send another system
3
2879
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.