Re: Document.ondoubleclick fires prematurely -- why?
- From: "Michael Harris \(MVP\)" <mikhar at mvps dot org>
- Date: Sun, 19 Feb 2006 22:13:57 -0800
Richard Lionheart wrote:
Hi All,
I ran TestScripting.html shown below in
- FireFox 1.5.0.1 and
- IE 6.0.2900.2180.xpsp_sp2_050301-1519
on a Windows XP-Pro/SP2 system.
I initiated execution by right-clicking the filename in a Windows
Explorer window and selecting one browser or the other. I also
double-clicked the filename which brought up FireFox.
In all cases, the browsers acted like I had double-clicked the
document, i.e. the document came up with the alert window displayed,
and after I dismissed the alert, both text phrases were displayed.
I appreciate learning how I can get the script to remain dormant
until I actually double-click the document.
document.ondoubleclick=AlertOnDblClick()
should be...
document.ondoubleclick=AlertOnDblClick
--
Michael Harris
Microsoft MVP Scripting
Scripting: Your First Steps
http://www.microsoft.com/technet/scriptcenter/topics/beginner/firststeps.mspx
.
- Follow-Ups:
- Re: Document.ondoubleclick fires prematurely -- why?
- From: Richard Lionheart
- Re: Document.ondoubleclick fires prematurely -- why?
- References:
- Document.ondoubleclick fires prematurely -- why?
- From: Richard Lionheart
- Document.ondoubleclick fires prematurely -- why?
- Prev by Date: Document.ondoubleclick fires prematurely -- why?
- Next by Date: Re: Document.ondoubleclick fires prematurely -- why?
- Previous by thread: Document.ondoubleclick fires prematurely -- why?
- Next by thread: Re: Document.ondoubleclick fires prematurely -- why?
- Index(es):
Relevant Pages
|