faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 15 people (53%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

how can I close a child window from a parent window?

Jul 12th, 2002 20:42
meng xianhui, laith z, mengxianhui


<script>
var aWin = window.open()
function closeIt()
{
if(aWin && aWin.open && !aWin.closed)
aWin.close()
}
</script>
<input value=close type=button onclick="closeIt()">