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!

Open link in new window 1

Status
Not open for further replies.

Enkrypted

Technical User
Sep 18, 2002
663
US
We have our intranet written in ASP. We are modifying it some and would like to have the following link open in a new window when generated. The code is listed below:

Code:
Response.Write "<strong>Checks<hr noshade></strong><br>"
If fs.FolderExists(storestr & qiid & "\checks\") Then
'	response.write storestr & qiid & "\checks\"
	set folder = fs.GetFolder(storestr & qiid & "\checks\")
	for each x in folder.files
	  Response.write("<a href=""docstore/" & QIID & "/checks/" & x.Name & """>" & x.Name & "</a></br>")
	next
	If folder.files.count = 0 then Response.Write "There are no checks attached to this QI.<br>"
	Response.Write "<br>"
	set folder = nothing
Else
	Response.Write "There are no checks attached to this QI.<br><br>"
End If

The following is what we are trying to get to open in a new window when clicked on:

Response.write("<a href=""docstore/" & QIID & "/checks/" & x.Name & """>" & x.Name & "</a></br>")


Any help is appreciated!

Enkrypted
A+
 
>Response.write("<a href=""docstore/" & QIID & "/checks/" & x.Name & """>" & x.Name & "</a></br>")
[tt]Response.write("<a href=""docstore/" & QIID & "/checks/" & x.Name & """ [blue]target=""_blank""[/blue]>" & x.Name & "</a>[red]<br />[/red]")[/tt]
 
Worked perfectly! Thanks for your help!

Enkrypted
A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top