# Browser window from CD-ROM

**URL:** <https://forum.kirupa.com/t/browser-window-from-cd-rom/47253>\
**Category:** flash\
**Created:** [April 1, 2004, 4:59pm UTC](https://forum.kirupa.com/t/browser-window-from-cd-rom/47253 "2004-04-01T16:59:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [April 1, 2004, 4:59pm UTC](https://forum.kirupa.com/t/browser-window-from-cd-rom/47253/1 "2004-04-01T16:59:41Z")

</div>

Is it possible to open up a JS Pop-Up window that is stripped down from a flash projector file off a CD-ROM? If not, is there a workaround where I can communicate with the Pop-Ups parent window to close itself? I tried the following but it’s not working…

I tried the following for that but it doesn’t work.

Parent Window Code:

\<html\>  
\<head\>  
\<title\>\</title\>  
\<script LANGUAGE=“JavaScript”\>  
\<!–  
var newWin;

function openNewWin() {  
newWin = window.open(‘newWin.html’,‘newWin’,‘width=210,height=240’);  
}

function closeNewWin() {  
if (newWin.location) { newWin.close(); }  
}  
// --\>  
\</SCRIPT\>  
\</head\>

\<body onLoad=“openNewWin();”\>

\<table BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=400 ALIGN=“center”\>  
\<tr\>  
\<td\>\<font SIZE="+1"\>\<b\>Opening a Pop-Up Window that Closes When Its Parent Document is Unloaded\</b\>\</font\>\</td\>  
\</tr\>  
\</table\>

\</body\>  
\</html\>

POP UP WINDOW CODE:

\<html\>  
\<head\>  
\<title\>\</title\>

\</head\>

\<body onload=“closeNewWin();”\>

\<table BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=400 ALIGN=“center”\>  
\<tr\>  
\<td\>\<font SIZE="+1"\>\<b\>Opening a Pop-Up Window that Closes When Its Parent Document is Unloaded\</b\>\</font\>\</td\>  
\</tr\>  
\</table\>

\</body\>  
\</html\>
