How to call user32.dll methods from javascript
问题 I have a javascript running on a browser. Is it possible to call a function/method in user32.dll. This is possible from C# by using pInvoke calls. How do I do the same in JavaScript? Thanks, Datte 回答1: Because of the JavaScript sandbox, you can't do it without a middle layer requiring elevated security permissions, such as a Netscape-style browser plug-in (widely supported), ActiveX control (pretty much IE-only), or .Net control (I assume that's possible; again probably IE-only). In each case