That would depend on what you expect for _the_same_way_ as playing a
Midi file.
Do you mean the executable is run embedded in the brwoser? If so,
it's not possible in general case, unless the exe is compiled with
special
COM options and you then have to use <object> tag, and of course the
exe can
only be run in Windows platform.
Or do you want to run the exe ? It's possible except that there'll
be a dialog to ask users if they want to open (run) or save the exe
file.
You can do like this :
<body ... onload=3D"window.location =3D your_exe_file">
> -----Message d'origine-----
> De : nope [mailto:pimpman12@h...]
> Envoy=C3=A9 : mardi 11 f=C3=A9vrier 2003 07:11
> =C3=80 : javascript
> Objet : [javascript] Re: Is there a way to "play" a .exe file ?
>
>
> > Hi all,
> >
> > Is there a way to execute an .exe file in javascript the
> same way as
> you can
> > play a .mid file ???
> >
> > Any suggestions ???