Thanks
Gary
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Exec("c:\Program Files\Internet Explorer\iexplore.exe")
VBScript only works in IE browsers.
What have you developed so far -- just the basics, please.
What is the file extension -- .htm, .html, .hta, .vbs, or ???
Hi, Gary
If you are trying to Open new window with ASP submit button , click on the
link to get some ideas.
Here is the dhtml window reference:
http://msdn2.microsoft.com/en-us/library/ms536651.aspx
-Paul Randall
Gary
[snip]
<a href="page.asp" target="_blank">Open ASP page</a>
"Paul Randall" wrote:
> OK, I'm confussed. This looks like Java Script. I was hoping to find a VBScript solution. Is there not one?
>
"McKirahan" wrote:
I'm wanting to do this with a submit button call VBScript (asp). Is it
possible?
Gary
>
>
>
"Pegasus (MVP)" wrote:
> 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")
Will one of these work for you?
<html>
<head>
<title>newWindows.htm</title>
</head>
<body>
<script type="text/javascript">
function js() {
window.open("http://www.google.com/index.html","win","");
}
</script>
<script type="text/vbscript">
Sub vbs()
window.open "http://www.google.com/index.html","win",""
End Sub
</script>
<form action="http://www.google.com/index.html" target="_blank">
<input type="submit" value="New Window 1">
<input type="button" value="New Window 2" onclick="js()">
<input type="button" value="New Window 3" onclick="vbs()">
</form>
</body>
</html>
Hopefully McKirahan's script works for you.
-Paul Randall