Can we call .hta file from javascript?

I am not able to call .hta file from javascript

is there any way to do this?

JavaScript cannot access the local file system without the consent of the user.

@smpthkmr86 Going by your previous topics I think I understand why you’re asking

As Dormilich. posted, they keyword is “consent”. There was a time when ActiveX and Applets could access a visitors file system. I imagine the intent was so that web pages would more closely resemble a native desktop app. Sadly, many security vulnerabilities were exposed, and they were taken advantage of. Since that time both operating systems and browsers no longer allow JavaScript access to a site visitor’s file system.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.