Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html vbscript input box

Status
Not open for further replies.

JimmyZ1

Technical User
Mar 31, 2004
397
Can someone help start me out?

Is there a way to create a simple html page with vbscript input boxes?
 
There is a way to create an html page with html text boxes for input, or you can have vbscript on the page open inputboxes that will popup and prompt the user. Which do you want to do?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
I'd rather have the text boxes for input,
 
will those work with vbscripts?
 
Yes they will. In the way of a quick example:
Code:
<HTML>
    <HEAD>
        <TITLE></TITLE>
    </HEAD>
    <BODY>
    <SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
    <!--
        Sub btnShow_OnClick
        	MsgBox "The text is: " & txtShow.Value
        End Sub
-->
    </SCRIPT>
    <P>&nbsp;</P>
    <P>
    <INPUT id=txtShow name=txtShow style="WIDTH: 484px; HEIGHT: 20px" size=121>
    </P>
<P><INPUT id=btnShow type=button value=Show name=btnShow></P>
    </BODY>
</HTML>



[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top