Ниже приведено изображение родительского экрана:
![image](https://i.stack.imgur.com/uNVcY.png)
При нажатии всплывающего окна появляется всплывающее окно:
![image](https://i.stack.imgur.com/gawhe.png)
![image](https://i.stack.imgur.com/5DX9x.png)
При нажатии создать в дочернем окне появляется предупреждающее сообщение.
Я попытался window.close, но в дочернем окне по-прежнему появляется предупреждение окно закрывается.
Есть ли способ, чтобы предупреждение появилось в родительском окне?
Parent HTML:
<html>
<head>
<title>ParentWindow</title>
</head>
<body>
<script language="JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features).focus();
}
</script>
<form name="frmMain" action="" method="post">
<input type="text" name="txtSel" id="txtSel">
<input name="btnSelect" type="button" id="btnSelect" value="popup"
onClick="javascript:MM_openBrWindow('DrawBinPage.html','pop', 'scrollbars=no,width=350,height=210')">
</form>
</body>
</html>
Child HTML:
<html>
<head>
<title>Bin Details Page</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
</script>
<br> <br>
  Length <input type="text" id="GoodsLength" >
<br> <br>
  Width  <input type="text" id="GoodsWidth" >
<br><br>
  Height <input type="text" id="Goodsheight">
<br><br>
<input name="btnSelect" type="button" id="btnSelect" value="Create" style="width:80px;height:30px" onClick="Createnew()"/>   
<input name="btnSelect" type="button" id="btnSelect" value="Close Window" style="width:150px;height:30px" onclick="window.close()" />
</body>
<script>
function Createnew(){
alert('hi');
}
</script>
</html>