Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Using an anchor tag with TARGET, how do I open a new window, not a new tab?

  • No replies
  • 1 has this problem
  • 9 views
more options

Before the advent of tabs in browsers, using the Target attribute in an anchor tag would open a new, "named" window. Now when you use the Target attribute, it opens a new tab, and the 'name' property is not usable. I'm finding that I have to use javascript window.open --- which I would rather not do.

Is there a non-JS way of opening a new, named window using just the anchor tag?

On the flip side of that, can you programmatically close a tab that was opened with the expectation of there being a name property?

Before the advent of tabs in browsers, using the Target attribute in an anchor tag would open a new, "named" window. Now when you use the Target attribute, it opens a new tab, and the 'name' property is not usable. I'm finding that I have to use javascript window.open --- which I would rather not do. Is there a non-JS way of opening a new, named window using just the anchor tag? On the flip side of that, can you programmatically close a tab that was opened with the expectation of there being a name property?

Modified by rbiggs