Cheap Gas - Debt Consolidation - Credit Counseling - Arizona Landscaping
HTML "Open in new window" code [Archive] - Threeboy Forums

PDA

View Full Version : HTML "Open in new window" code


Liquor_Riss
04-26-2003, 12:42 PM
I've started designing my new site Generic-Template.com (http://www.generic-template.com) but I have come across a small problem. I have a scrollable news box like the ones on Spoono (http://www.Spoono.com) but when I put a link in it attempts to open the page within the box. Can anyone tell me the HTML code for opening links in a new window (if it exists)?

brentech
04-26-2003, 01:37 PM
That's an easy one ;)

Try using something like:
<A TARGET="_blank" HREF="http://www.domain.com">sitename</A>
This creates a new browser window for the site to appear on.


*moved*
Lordy - Threeboy creates this nice Coding forum and people don't even use it. SHEESH! :P

Liquor_Riss
04-26-2003, 02:15 PM
Thanks for the help mate :)
Apologies for posting in the wrong place :D

chrisv
04-27-2003, 02:40 AM
Nice work Brentech.
Go the coding forum!

04-27-2003, 12:45 PM
Well the Javascript for it if you want it more customized is

window.open('URL/link','Window Name','attributes like size and what types of features it should have');

Threeboy
04-27-2003, 12:47 PM
good work guest! now register :P

*disables guest posting*

Liquor_Riss
04-29-2003, 03:15 PM
Doh! No more anonymous posting for me, not that I did anyway :P

drake
04-30-2003, 04:59 PM
Ah well it was me but I forgot to login. Please disable it because then when the cookie expires and I post it says LOGIN IN YOUR COOKIE WAS DESTROYED! :)