I'd like to create a form that accepts a URL pasted in by the user and then also creates an input number of tabs with that URL. I have a vbscript that does this but, thought it would be nice to have it in a webpage. Is this something a simple <form> is capable of or will something like javascript be required?
Thanks and I'm including the vbscript code for reference.
[!]The AutoSavers![/!]
Thanks and I'm including the vbscript code for reference.
Code:
On Error Resume Next
Dim strProgram
Dim strNum
Dim strURL
Dim WshShell
MsgBox "message text", vbOKOnly, "title"
strProgram = "chrome.exe"
strNum = InputBox("Enter the number of tabs you would like to open.", "title")
strURL = InputBox("Enter the URL for your tabs.", "title")
If strNum = "" Then
MsgBox "You didn't enter a number for how many tabs to create." & VBNewLine & "The program will now end.", VBCritical, "title - ERROR"
WScript.Quit
End If
If strURL = "" Then
MsgBox "You didn't enter a URL." & VBNewLine & "The program will now end.", VBCritical, "title - ERROR"
WScript.Quit
End If
Set WshShell = WScript.CreateObject("WScript.Shell")
i = strNum
Do Until i=0
i=i-1
WshShell.Run strProgram & " " & strURL
WScript.Sleep(1000)
If i<1 Then Exit Do
Loop
[!]The AutoSavers![/!]