Topic awaiting preservation: About:blank in javascript |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: övik |
posted 01-22-2005 23:09
Hi, I was wondering if anyone know if there's a javascript version of target="_blank"? |
Paranoid (IV) Inmate From: France |
posted 01-23-2005 15:53
I don't understand what you want. Do you want to open a popup/emulate the target attribute where its not allowed by the DOCTYPE or not ? If you do, then you could use the rel attribute of the A tags to denote if they are external, then onload of the page, detect these A tags and onclick trigger a window.open( this.href, "", "" ). |
Bipolar (III) Inmate From: London |
posted 01-25-2005 00:49
This always works for me, and gets around the validation problems where the DOCTYPE will not allow a "target=": |