<HTML>
<HEAD NAME = "WindowPane">
<SCRIPT LANGUAGE = "JavaScript">
function displayWindowInfo() {
var winInfo = ""
winInfo = "Number of frames: " + window.length + "\r"
winInfo += "Window object name: " + window.window + "\r"
winInfo += "Window parent name: " + window.parent + "\r"
winInfo += "URL: " + window.location + "\r"
alert(winInfo)
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<INPUT
Type="button"
Value="Display Window Information"
OnClick="displayWindowInfo()"
</INPUT>
</FORM>
</BODY>
|