TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What is the successor to HTML Applications (.hta)?

3 点作者 deanebarker超过 2 年前
Back in the day (late 90s), Microsoft had a format called &quot;HTML Application.&quot;<p>It was just an HTML page with a &quot;.hta&quot; file extension. Opening such a file would open it in a chrome-less browser, and give the scripting in the page access to the file system.<p>I used to love these things. I wrote a bunch of little apps in them.<p>Some examples:<p>https:&#x2F;&#x2F;medium.com&#x2F;@anht_59851&#x2F;html-application-hta-a-gui-for-your-scripting-on-windows-bfaacf2c3bdd<p>These still exist, but there are problems with them:<p>1. Coding is a bear. They run in the mshta.exe process, and that spawns an instance of... IE9, I think? There&#x27;s no &quot;inspect&quot; panel, for instance, and errors just pop a modal with no debugging information.<p>2. Near as I can tell, they use an older version of ECMAScript. &quot;let&quot; doesn&#x27;t seem to work, not does &quot;addEventListener,&quot; etc. I kept getting weird &quot;Syntax Errors&quot; for things that appeared to be valid, contemporary JavaScript.<p>3. I&#x27;m quite sure some security software (like on my laptop, issued by employer), blocks these from executing.<p>What&#x27;s the current-day equivalent of these? I want to write an HTML page complete with CSS and JS, double-click on it from my desktop, have it open in a browser instance of its own, and have access to the file system.<p>I essentially want a way to create little GUI apps, without having to use WinForms.<p>What am I looking for? Is it Electron?<p>(Note: I&#x27;m on Windows)

2 条评论

meehow超过 2 年前
WebView: <a href="https:&#x2F;&#x2F;webview.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webview.dev&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;webview&#x2F;webview">https:&#x2F;&#x2F;github.com&#x2F;webview&#x2F;webview</a>
solardev超过 2 年前
Yeah it sounds like you&#x27;re describing Electron. That&#x27;s how VSCode works, for example. It&#x27;s just a web app running in a web view.