![]() |
|
|
+ Search |
![]()
|
Apr 5th, 2008 19:20
ha mo, Jean-Bernard Valentaten, James Ji, Arsen Yeremin, Trung Nguyen,
> It only worked on IE, how I can let it works on netscape 4.7?
> ============================================================
> <html>
> <head>
> <title>Javascript/COM</title>
> </head>
>
> <body>
> <script>
> function OpenPrograms()
> {
> var obj_ws = new ActiveXObject("WScript.Shell")
> if(confirm("Do we open notepad?"))
> { obj_ws.Run("notepad.exe");
> }
> if(confirm("Do we open Paint?"))
> { obj_ws.Run("pbrush");
> }
> }
> </script>
> <a href="javascript:OpenPrograms()">Open Programs</a>
> </body>
> </html>
Well, I guess this won't work in any NN at all. ActiveX-Objects are
MicroSoft tech and will only work in the InternetExplorer (though I
have read that Netscape wanted to implement them in NN6.x).
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com