Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
194 views
in Technique[技术] by (71.8m points)

javascript - 是否可以在HTML中的“ onclick”上运行.exe或.bat文件(Is it possible to run an .exe or .bat file on 'onclick' in HTML)

Is it possible to run bat/executable file using html5 button event?(是否可以使用html5按钮事件运行bat /可执行文件?)

In IE its achievable using Shell object if I am not wrong.(在IE中,如果我没有记错的话,可以使用Shell对象来实现。)   ask by VSr translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No, that would be a huge security breach.(不,那将是一个巨大的安全漏洞。)

Imagine if someone could run(想象如果有人可以跑步)
format c:

whenever you visted their website.(每当您访问他们的网站时。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...