in javascript dom, how do you get the target of the current window?

dom, javascript, tabs

Solution

The `window.name` property is what you're looking for.

Problem

assuming a link ``` <a href='www.domain.com/mypage' target='target1' >Open in New Tab</a> ``` opens a `mypage` how, from `mypage`, do I know if the current window is 'target1' have looked under `window` and `window.location`, but nothing there seems to fit

Original source