August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.self.method window.self.property
The self property of the Window object contains a reference to the current window. This allows you to invoke functions or call properties on the current window without any confusion when multiple windows are displayed.
Listing 7.582 shows how to close the current window through the self reference.
<script language="JavaScript">
<!-- Hide
// Define a function to close the current window
function closeWin(){
self.close()
// End hide --->
</script>
|
Read now
Unlock full access