I'd like to convert this to javascript so I can use it in a webpage but, don't know where to start. Is something like this possible?
[!]The AutoSavers![/!]
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![/!]