Guest_imported
New member
- Jan 1, 1970
- 0
I have some client-side vbscript that I'm executing through an IE menu-extension. Basically what this script does is fill-in a user's Username/Password combo for Bulletin Boards, Online E-mail accounts, and the like. All a user has to do to fill-in their Username/Password combo is right-click on the textbox, and choose "-= Login =-" from the context menu and their Username/Password is automatically filled in. I have code to submit the form, but it has no effect. Anyone have an idea on how I can submit the form?
Here's the code I'm using:
Here's the code I'm using:
Code:
<SCRIPT LANGUAGE = "VBScript">
Dim oWindow,oDocument
Set oWindow = window.external.menuArguments
Set oSource = oWindow.event.srcElement
Set oDocument = oWindow.document
If oSource.tagName = "INPUT" Then
Select Case oWindow.location
<!--'VBFORUMS-->
Case "[URL unfurl="true"]http://www.vbforums.com/"[/URL]
oDocument.Forms(2).elements("username").Value = "YourUsername"
oDocument.Forms(2).elements("password").Value = "YourPassword"
oDocument.Forms(2).Submit
<!--'HOTMAIL-->
Case "[URL unfurl="true"]http://lc1.law5.hotmail.passport.com/cgi-bin/login"[/URL]
oDocument.Forms(0).elements("login").Value = "YourUsername"
oDocument.Forms(0).elements("passwd").Value = "YourPassword"
oDocument.Forms(0).Submit
End Select
End If
</SCRIPT>