pass user input from html into vbscript duplicate

I recommend you using HTA instead of HTML if you want to use vbscript :


<html>
<head>
<title>Pass user input from HTA into VBScript</title>
 <HTA:APPLICATION
 Application ID = "Input"
 APPLICATIONNAME = "Input"
 BORDER = "Dialog"
 BORDERSTYLE = "Normal"
 />
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="YES">
 <style type="text/css">
  body {
        font-family:Verdana;
        font-size: 12px;
        color: #49403B;
        background: LightBlue;
        }
</style>
<script language="vbscript" type="text/Vbscript">
Function displayValue()
    Set vol = document.getElementbyID("transfer_vol")
    Msgbox(vol.value)
End Function
</script>
</head>     
<body>
<label>Transfer Volume:</label>
<input type="text" name="transfer_vol" id="transfer_vol" max="200" size="8">
<input type="button" onclick="displayValue" value = "Confirm Parameters" />
</boy>
</html>

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top