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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink

Status
Not open for further replies.

HotBob

Programmer
May 26, 2006
37
GB
Hi How can I open this hyperlink in a new window.

Code:
<td width="350" height="32" bgcolor="#F2FCFF" colspan="2"><a href="<%response.Write("test.asp")%>?login=<%= objRec("login") %>"><%Response.write("Click here to view")%></td>

I need this to open up a new window I am passing through the login.

Can this be done another way.
 
Code:
<td width="350" height="32" bgcolor="#F2FCFF" colspan="2"><a href="<%response.Write("test.asp")%>?login=<%= objRec("login") %>" [red]target="_blank"[/red]><%Response.write("Click here to view")%></td>

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
<td width="350" height="32" bgcolor="#F2FCFF" colspan="2"><a href="test.asp?login=<%= objRec("login") %> >" target="_new">Click here to view</td>

I've also removed some response.writes that weren't needed but basically target="_new" is the bit you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top