PDA

View Full Version : onclick to open new window


Skyzyx
01-26-2003, 06:25 PM
I know that in HTML you'd use a TARGET attribute to open a new window. I'm wanting to use an onclick event to do this... something like location.href='';, but I can't remember how to open a new window instead of re-using the same window...

Can anyone help?

ez4me2c3d
01-26-2003, 06:42 PM
onClick="window.open()"

i'm pretty sure that's the basics of it.

Skyzyx
01-26-2003, 06:57 PM
Oh, duh! Thanks.

ez4me2c3d
01-26-2003, 08:03 PM
you're welcome