Click to See Complete Forum and Search --> : Link to open new window


jbrookman
04-24-2006, 07:43 PM
I am very new to the web development/ HTML/ CSS world and I am learning how to develop and program a web/HTML-based teaching file for ophthalmology residents on certain topics. The idea of the project is to have a "database" (in the very loose sense of the word--not SQL- or MS Access-based or anything like that, just in tabular format) of specific published journal articles from the medical literature, in PDF format, that will be used to provide reference material.

I am organizing the site in a tabular format: Article reference (with a link to the PDF file), type of article, and a brief description of the article. I am having a lot of trouble figuring out how to write the code in HTML (or XHTML) to facilitate opening the referenced PDF article in a new window when the link is clicked on.

The code snipet I have which opens the link in the same window of the web browser is:

<tr>
<td height="56"><a href="../Articles/Alterations in Intracranial Pressure/Unilat Swollen Disc and Increased ICP (Neurol 6-2001).pdf">Huna–Baron R, et al. Unilateral swollen disc due to increased intracranial pressure. Neurology 2001;56:1588–1590.</a></td>
<th align="center" valign="middle"><div align="center"><strong>X</strong></div></th>
<th align="center" valign="middle"><div align="center">&nbsp;</div></th>
<th align="center" valign="middle"><div align="center">&nbsp;</div></th>
<td>Prospective analysis of patients presenting with unilateral papilledema.</td>
</tr>

If you ignore the medical jargon, what am I missing to make the link open in a new window?

Thanks for the help.

Jason

Kevey
04-24-2006, 07:46 PM
<a href="../Articles/Alterations in Intracranial Pressure/Unilat Swollen Disc and Increased ICP (Neurol 6-2001).pdf" target="_blank">

jbrookman
04-24-2006, 10:14 PM
Thanks, Kevey. Much appreciated.

jb.

felgall
04-25-2006, 01:44 AM
Just remember that target is deprecated and wont be supported for much longer as it is expected that your visitor should be the one to decide whether or not to open a link in a new window.