Web Hosting Talk







View Full Version : Open new window help


D8TA
06-26-2002, 04:40 PM
wondering if someone here could give me some advice or tell me how to do this. I have a website that has a weekly bulletin, the bulletin is saved on the server as a .doc file. On the website is the date of that specific bulletin. Everytime a user clicks on the date the bulletin opens up in the same window. How or what can I do so when a user clicks on the bulletin date link the bulletin file will open in a new window instead of the same one? I hope this is somewhat clear, feel free to respond if confused or PM me. Just trying to make the bulletin a little more user friendly instead of users always having to hit there back button in the browser to return to the site. Thanks in advance.

Aralanthir
06-26-2002, 04:56 PM
Not sure if this is what you want, but in the link tag, you can add target="_blank"

so it'll look like this:

<a href="Yourname.doc" target="_blank">link</a>

eclipsewebs
06-26-2002, 04:57 PM
D8TA,

The easiest way to do this will be to include the target option on the link.

i.e. <a href="page.html" target="new">Link Text</a>

This will cause the link to open a new browser window. There are other ways with javascript, but I think this will do what you want.

Good Luck,

D8TA
06-26-2002, 06:09 PM
Thanks Aralanthir and eclipsewebs. That is what I was looking for, works great.