title: in javascript dom, how do you get the target of the current window?
body: <p>assuming a link</p>
  
  <pre><code>&lt;a href='www.domain.com/mypage' target='target1' &gt;Open in New Tab&lt;/a&gt;
  </code></pre>
  
  <p>opens a <code>mypage</code></p>
  
  <p>how, from <code>mypage</code>, do I know if the current window is 'target1'</p>
  
  <p>have looked under <code>window</code> and <code>window.location</code>, but nothing there seems to fit</p>