Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

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

  • Няма отговори
  • 1 има този проблем
  • 8 изгледи
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?

Променено на от rbiggs