Re: Open a New Browser Window with VBScript
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Mon, 24 Sep 2007 20:56:46 +0200
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D7446A79-79BE-4636-A6B3-E0594CB68C95@xxxxxxxxxxxxxxxx
"Pegasus (MVP)" wrote:
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A591C49-5EFE-4A07-9BBE-A914FC946926@xxxxxxxxxxxxxxxx
OK, I would think this would be easy but somewhere I'm missing
something.
I
have an HTML form and I want to open a new browser window. When I
click a
button I call some VBScript and inside that VBScript I want to open a
new
browser window. I thought that using window.open would work but I
can't
seem
tot get it to. Is there some magic I need to open a new window using
VBScript?
Thanks
Gary
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Exec("c:\Program Files\Internet Explorer\iexplore.exe")
I am wanting to open an asp page in a new browers window. How would I do
that with this method?
Gary
I don't have an asp page to test it on but this should work:
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Exec("c:\Program Files\Internet Explorer\iexplore.exe http://www...asp")
.
- References:
- Re: Open a New Browser Window with VBScript
- From: Pegasus \(MVP\)
- Re: Open a New Browser Window with VBScript
- Prev by Date: Add multiple local user accounts
- Next by Date: dump add/remove programs list
- Previous by thread: Re: Open a New Browser Window with VBScript
- Next by thread: Re: Open a New Browser Window with VBScript
- Index(es):