Article View: microsoft.public.inetsdk.programming.scripting.jscript
Article #17Re: Rightclick html-button also in NN
From: browsertrack.com
Date: Sat, 09 Oct 1999 00:00
Date: Sat, 09 Oct 1999 00:00
56 lines
2591 bytes
2591 bytes
see the cross-browser 'disable right click' script at:
http://www.browsertrack.com/scripts/
--
========= www.BROWSERTRACK.com =========
solutions for web developers, available soon
====================.====================
Rafael Rasinger <rasinger@atc.co.at> wrote in message
news:37faffde@news.kapsch.co.at...
> Dear reader!
>
> Using the script below I have encountered the following problem:
> I wanted to perform a right/left click function (when u rightclick the
> html-button a different action is performed than when leftclicking it),
> which perfectly works in MSIE5 but unfortunately not in NN (evt has no
> properties. JavaScript Error: line 10:).
>
> Have you got an idea what the bug is or how to solve the problem?
>
> Thanks a lot for your help, Rafael
>
> ***********
> <HTML>
> <BODY>
>
> <script LANGUAGE="javascript">
>
> function ButtonClick(evt) {
> if ((document.layers && evt.which == 3) || (document.all &&
> event.button == 2))
> {
>
>
window.open("help.html#Insert","HELP","height=400,width=800,status=no,scroll
> bars=yes");
> return false;
> event.returnValue = false;
> }
> else window.location="edit.asp";
> };
>
> </script>
>
> <!--<a href="help.html" onMousedown="ButtonClick()">Verweis</a>-->
>
> <form>
> <input type="button" value="push" onMousedown="ButtonClick()">
> </form>
>
> </BODY>
> </HTML>
> **************
>
>
Technical Details
Message-ID:
<7tn0g8$qcv$1@oak.prod.itd.earthlink.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37faffde@news.kapsch.co.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4a5,ef584bb94dae6a9 X-Google-Attributes: gid10d4a5,public X-Google-Thread: 10731d,ef584bb94dae6a9 X-Google-Attributes: gid10731d,public X-Google-Thread: 10c71c,ef584bb94dae6a9 X-Google-Attributes: gid10c71c,public X-Google-Thread: fcc66,ef584bb94dae6a9 X-Google-Attributes: gidfcc66,public X-Google-Thread: fb3cb,ef584bb94dae6a9 X-Google-Attributes: gidfb3cb,public From: "browsertrack.com" <info@browsertrack.com> Subject: Re: Rightclick html-button also in NN Date: 1999/10/09 Message-ID: <7tn0g8$qcv$1@oak.prod.itd.earthlink.net> X-Deja-AN: 534635149 References: <37faffde@news.kapsch.co.at> X-Posted-Path-Was: not-for-mail X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-ELN-Date: 9 Oct 1999 09:05:12 GMT X-ELN-Insert-Date: Sat Oct 9 02:15:02 1999 Organization: EarthLink Network, Inc. X-MSMail-Priority: Normal Newsgroups: microsoft.public.inetsdk.programming.scripting.jscript,microsoft.public.scripting.jscript,borland.public.intrabuilder.javascript,comp.lang.javascript,de.comp.lang.javascript