Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8312823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:17:16+00:00 2026-06-08T20:17:16+00:00

I have a VBScript that takes some arguments (name, email, etc) and I created

  • 0

I have a VBScript that takes some arguments (name, email, etc) and I created a HTML form.

When the user types the data, I want to execute the VBScript and pass the form data as parameters.

The question is how do I run a VBScript from an HTML form(there is no Server so the client executes the HTML and runs the VBscript on their machine).

The VBScript is an external file. Lets call it myScript.vbs

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:17:17+00:00Added an answer on June 8, 2026 at 8:17 pm

    As a matter of coincidence i just yesterday published a question how to do this in Ruby and gave a vbscript script as sample, so here you have it. But in fact it is best the other way round, you best start the browser from your script.

    Set web = CreateObject("InternetExplorer.Application") 
    If web Is Nothing Then 
      msgbox("Error while loading Internet Explorer") 
      Wscript.Quit 
    Else 
      with web 
        .Width = 300 
        .Height = 175 
        .Offline = True 
        .AddressBar = False 
        .MenuBar = False 
        .StatusBar = False 
        .Silent = True 
        .ToolBar = False 
        .Navigate "about:blank" 
        .Visible = True 
      end with 
    End If 
    
    'Wait for the browser to navigate to nowhere 
    Do While web.Busy 
      Wscript.Sleep 100 
    Loop 
    
    'Wait for a good reference to the browser document 
    Set doc = Nothing 
    Do Until Not doc Is Nothing 
      Wscript.Sleep 100 
      Set doc = web.Document 
    Loop 
    
    'Write the HTML form 
    doc.Write "Give me a name<br><form><input type=text name=name ><input type=button name=submit id=submit value='OK' onclick='javascript:submit.value=""Done""'></form>" 
    Set oDoc = web.Document 
    Do Until oDoc.Forms(0).elements("submit").Value <> "OK" 
      Wscript.Sleep 100 
      If web Is Nothing or Err.Number <> 0 Then 
        msgbox "Window closed" 
        Wscript.Quit 
      End If 
    Loop 
    name = oDoc.Forms(0).elements("name").value 
    oDoc.close 
    set oDoc = nothing 
    web.quit 
    set web = nothing 
    Wscript.echo "Hello " & name 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VBScript script that takes 2 command-line arguments and does some validation.
I have a script which takes user input, performs some operations on that input
I have created a VBScript which pulls the service tag, username, and computer name
I have a Vbscript that runs on user log off that is suppose to
I have a vbscript that inserts some strings into a database. Often, these strings
I have a vbscript file that I want to run in my vb.net application.
I have been asked to create a vbscript that will set the default font
I have a VBScript script that runs a second VBScript script. The second VBScript
I have a VBScript script that looks like this: Const ForAppending = 8 Set
I have a classic asp webpage written in vbscript that outputs the results from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.