是否可以通过“ Google Chrome”中的url / js / php执行程序?

时间:2019-05-12 21:07:17

标签: javascript php google-chrome url execute

我想用本地网页制作自己的“仪表盘”,这可以使我通过链接启动程序。我只是想知道是否有可能使用url / js-command / php-command启动程序或批处理文件。

1 个答案:

答案 0 :(得分:-3)

制作一个.txt文件,将其重命名为.html文件,将代码放入其中,并使用带有onclick="window.location.href='file path here'"的按钮或链接来更改URL。 例如:

<button onclick="window.location.href='file path here!'">Program 1</button>

我知道它可以与.html文件一起使用,并且您可以为js和php使用脚本和php标签。

相关问题