![]() ![]() Var x = document.getElementById("myText").value In a word, it works with the following code: I want to read two words and pass them to the batch. which can be anything, but must be uniqueĮle.value = arg1 //arg1 is from above code "theTextFieldID" is the element's ID attribute value, var ele = document.getElementByID("theTextFieldID") get a reference to the element's object, then change its value. Setting a text field value is same as in web browser. ![]() retrieving the first argument (whatever that it) var arg1 = WSCript.Arguments(0) ![]() The first argument of mshta.exe following the HTA file. WScript.Arguments(0) is the first argument. Parameters of the HTA file can be retrieved using the WScript.Arguments property. The batch file in that post, runs mshta.exe as a command line for the for command. Passing batch variable values to the JScript context of the HTA, is a matter of passing command line arguments to mshta.exe. It's looks and works the same as JavaScript, but it's not identical. JScript is Microsoft's version of JavaScript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |