🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.inetsdk.programming.scripting.jscript
Article #16

Rightclick html-button also in NN

#16
From: Rafael Rasinger
Date: Wed, 06 Oct 1999 00:00
42 lines
2157 bytes
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: <37faffde@news.kapsch.co.at>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4a5,ef584bb94dae6a9,start
X-Google-Attributes: gid10d4a5,public
X-Google-Thread: 10731d,ef584bb94dae6a9,start
X-Google-Attributes: gid10731d,public
X-Google-Thread: 10c71c,ef584bb94dae6a9,start
X-Google-Attributes: gid10c71c,public
X-Google-Thread: fb3cb,ef584bb94dae6a9,start
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: fcc66,ef584bb94dae6a9,start
X-Google-Attributes: gidfcc66,public
From: "Rafael Rasinger" <rasinger@atc.co.at>
Subject: Rightclick html-button also in NN
Date: 1999/10/06
Message-ID: <37faffde@news.kapsch.co.at>
X-Deja-AN: 533396626
X-Original-NNTP-Posting-Host: 193.80.86.140
X-Trace: 6 Oct 1999 09:53:02 +0100, 193.80.86.140
Organization: Kapsch AG; Vienna, Austria
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: microsoft.public.inetsdk.programming.scripting.jscript,microsoft.public.scripting.jscript,borland.public.intrabuilder.javascript,comp.lang.javascript,de.comp.lang.javascript
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@kapsch.net