PDA

Click to See Complete Forum and Search --> : Need Help with a link


kanejone
Oct 16th, 2000, 09:37 AM
Hi guys,
Hopefully someone can help me
I have the following link.

Response.Write("Click <A Href="& strFile &".csv>Here</A> to to get CSV file")


I want to know how I can make this link open as a new window with only a menubar(ie no address bar etc.). The file &strFile&. is a file that's generated automatically by a different function (it needs to keep the file extension .csv)

Thanks a lot for your help.

Cheers
JK

Serge
Oct 16th, 2000, 06:30 PM
You can do something like this:

<HTML>
<SCRIPT language=javascript>
function NavigateToLink(p_Link)
{
window.open(p_Link, p_Link, "status=no,toolbar=no,menubar=no")
}
</SCRIPT>

<BODY>
<BR><BR>
<CENTER>
<%'I assume that you already have strFile holding the correct link%>
<A id=Link style="cursor: hand" onclick=NavigateToLink(<%=strFile%>)><U>Get CSV file</U></A>
</CENTER>
</BODY>

</HTML>