View Full Version : target="_blank" in JS

01-06-2004, 12:00 PM

Is it possible to replicate the ahref target="_blank" in javascript?

Could work something like this:

< JS Code >

<a href="*.html" onclick='javascript:OpenTarget();'>Open Win</a>

I just need a way to reference a new window opening across the whole site. I can't use window.open command because of pop stoppers.



01-06-2004, 12:26 PM
You want a new window but at the same time you're wary of popup blockers? :confused:

You can avoid opening a new window by using an iframe inside a positioned div to display html pages inside another page.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum