Using the browser for desktop UI

前端 未结 6 889
刺人心
刺人心 2020-12-30 08:07

How can I use the browser as a UI for a desktop app? The ways I have come up with so far are...

  1. Use all HTML/Javascript. Problem: Can\'t access filesystem or j
6条回答
  •  难免孤独
    2020-12-30 08:27

    In Windows, you could embed the IE ActiveX control, which uses the same rendering engine as IE. (That's a plus and a minus) You can set the ScriptObject property in your host code and access it in Javascript as window.external to do things that Javascript cannot do.

    If you run a local webserver, you could have an exit link in the app that kills the websever.

提交回复
热议问题