Hi all, I want to know how to write the script to popup the inputbox(get the input) or msgbox(Yes/No)in vbscript, because i want to get the answer form the user.
Client Side only means it'll work only on the user's computer. You need to put this in <script language="VBScript"> tags in the HTML code. You won't need <% %> there.
Code:
<script language="VBScript">
Dim StrInput
StrInput = InputBox("Whooze yer daddy?")
</script>
Originally posted by mendhak Client Side only means it'll work only on the user's computer. You need to put this in <script language="VBScript"> tags in the HTML code. You won't need <% %> there.
Code:
<script language="VBScript">
Dim StrInput
StrInput = InputBox("Whooze yer daddy?")
</script>
Froggy, you encouraging people to use VBScript in client side, thats not good .
DoneJoe try using JavaScript in Client Side as it works on most browser wheras VBScript will only work in IE.
Code:
<script language=javascript>
var strInput;
strInput= confirm("I am your Daddy!");
if (strInput)
alert("Aww come to daddy..");
else
alert("Go to the Froggy :(");
</script>