target_new-1.html 543 B

1234567891011
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="en"><head>
  3. <body>
  4. <p>Reference the opener, its properties and functions via the links below.</p>
  5. <ol>
  6. <li>Clicking <a href="#" onclick="alert(window.opener)">here</a> should alert "[object Window]"</li>
  7. <li>Clicking <a href="#" onclick="alert(window.opener.aVar)">here</a> should alert "some value"</li>
  8. <li>Clicking <a href="#" onclick="window.opener.externallyCalled()">here</a> should alert "hello from opener"</li>
  9. </ol>
  10. </body></html>