Thread View: microsoft.public.inetsdk.programming.scripting.jscript
2 messages
2 total messages
Started by Rafael Rasinger
Wed, 06 Oct 1999 00:00
Rightclick html-button also in NN
Author: Rafael Rasinger
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
42 lines
2157 bytes
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>
**************
Re: Rightclick html-button also in NN
Author: 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>
> **************
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads