Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to redirect to a new window?

Status
Not open for further replies.

dust

Technical User
Feb 15, 2001
2
CH
My website has frames. I am developing a page that when the user click a hyperlink, he/she will be redirected to a new page according to the id of the link. The code is like this:
Select Case "id"
Case 1
Response.Redirect "page1.asp"
Case 2
Response.Redirect "page2.asp
......
End Select
But instead of opening a new window, this will open the page in the main frame. Can I open a new window using VBScript? If yes, how to do that?

Any help will be appreciated.

Thanks.



 
Yes, you can do it.
There are a property in the FORM TAG, that is TARGET.
I don't remember just now which is the resrved word for a new windows, but I think you'll solve the problem adding "TARGET=_blank" (obviously without the quotes) in the FROM TAG.

(Sorry about my english)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top