Torne (Richard Coles) | 5c87bf8 | 2012-11-14 11:46:17 +0000 | [diff] [blame] | 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 | |
| 7 | <li>Clicking <a href="#" onclick="alert(window.opener)">here</a> should alert "[object Window]"</li> |
| 8 | <li>Clicking <a href="#" onclick="alert(window.opener.aVar)">here</a> should alert "some value"</li> |
| 9 | <li>Clicking <a href="#" onclick="window.opener.externallyCalled()">here</a> should alert "hello from opener"</li> |
| 10 | </ol> |
| 11 | </body></html> |