ASP window.open

G

Guest

Well I have searched the web and books but so far I am drawing a big fat
nada on this one.

I want to open a new window from an ASP page and everything I have found
suggests to use JavaScript and not the server side VBScript. The problem is
that the server side is what will decide were to send the user. Is there a
way to exit or open a new window using JavaScript passing in variables from
VBScript server side then close the ASP page?
 
A

Aaron Bertrand [MVP]

I want to open a new window from an ASP page and everything I have found
suggests to use JavaScript and not the server side VBScript. The problem is
that the server side is what will decide were to send the user.

So?

<%
url = "someurl.asp"
Response.Write("<" & "script>" & vbCrLf)
Response.Write("window.open('" & url & "');")
Response.Write(vbCrLf & "<" & "/script>")
%>
 
G

Guest

Arron;
Thanks,,,, I am such a DA. After looking at the code I want to kick myself
for not getting it on my own.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top