I have an HTA with VBScript that has an element set to a variable, SN2:
<script language="VBScript">document.getElementById("ComputerName").value = SN2</script>
Set to print out to an HTML textbox:
<html><input class="inputs" type=text id="ComputerName" name=ComputerName /></html>
And this works well! However, I wanted to set the value to display in the textbox on
To do this, I set my VBScript function to
<body onload="myFunction()">. And this works well, except there is another function I need to set to
So I was wondering if there was a way to set my
document.getElementById("ComputerName").value = SN2 to onload in a different way.
Thanks for any input!
You can call many functions onload:
<BODY onLoad="firstFunction();secondFunction() ">
©2020 All rights reserved.