Re: Document.ondoubleclick fires prematurely -- why?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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



.



Relevant Pages

  • Unable to add form - "The operation could not be completed"
    ... After choosing a filename, it says 'The operation could not be completed' and takes me back to the filename chooser. ... As per suggestions found on Google, I first tried to uninstall Windows Scripting 5.6. ... and reinstalled scripting using the installer. ...
    (microsoft.public.vstudio.general)
  • Unable to add form: "The operation could not be completed"
    ... After choosing a filename, it says 'The operation could not be completed' and takes me back to the filename chooser. ... As per suggestions found on Google, I first tried to uninstall Windows Scripting 5.6. ... and reinstalled scripting using the installer. ...
    (microsoft.public.vsnet.ide)
  • Re: Transferring directory structure to Windows
    ... Transferring directory structure to Windows ... Filename collisions are a real threat but it should be ... whether FTP, tar, or whatever, you will only wind up ...
    (AIX-L)
  • Re: Characters allowed in short filenames
    ... fatgen103.doc seems to have a slightly below average proportion of bugs, but Windows doesn't completely agree with it. ... > My partial understanding is that short filenames are stored using the> OEM ... > As far as I can tell, code page 437 doesn't contain a ß character. ... > page is 850 then we are halfway towards allowing a short filename to ...
    (microsoft.public.development.device.drivers)
  • gnu grep in windows
    ... windows, it should not be. ... while also fixing this filename case sensitivity ... Fix this first by giving grep a directory to recurse into. ...
    (comp.windows.x.i386unix)