Payo10
MIS
- Oct 11, 2011
- 9
What im trying to do is to grab the computer usermane (doing it with a VBscript in an HTA file) and appending the usermane to an Iframe src at the end. Im not sure how to pass the output from my VBscript to be used on the Iframe. here is my code
<head>
<title>HTA Tutorial</title>
</head>
<script language="VBScript">
Sub callSub
Dim objNetwork
Set objNetwork = CreateObject("WScript.Network")
strUserName = objNetwork.UserName
MsgBox strUserName
End Sub
</script>
<body>
<span id=DataArea></span>
<iframe style="width:100%; height:100%" src='
</body>
</html>
<head>
<title>HTA Tutorial</title>
</head>
<script language="VBScript">
Sub callSub
Dim objNetwork
Set objNetwork = CreateObject("WScript.Network")
strUserName = objNetwork.UserName
MsgBox strUserName
End Sub
</script>
<body>
<span id=DataArea></span>
<iframe style="width:100%; height:100%" src='
</body>
</html>