Vbscript + Javascript in an HTA/HTML file

Asked

Viewed 87 times

0

I’m trying to create a mini program in HTA using two scripts: one in VBS and another in JavaScript. However, whenever I include one of the scripts by tag <script type="text/vbscript" src="script.vbs"> and <script type="text\javascript" src="script.js"> the other script stops working. There is some compatibility problem that prevents the use of two scripts of different languages in HTA?

Note: I’m using the tag <meta http-equiv="x-ua-compatible" content="ie=11"/> to force compatibility on HTA and use newer CSS features.

1 answer

0

Hello, From what I could get by doing some tests, ALL HTA content should be within the same file. That is.. vc cannot "import" from another .js.. must have the js code of this file inside the html itself in the javascript tags.

For when the HTA runs, it must function by itself, without using external means.

I hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.