Обновление родительского окна после закрытия всплывающего окна

Я создаю всплывающее окно, которое идет в hello.html. Я хочу, чтобы мой оригинальный (родительская страница) перезагрузился, когда я закрываю всплывающее окно (hello.html). Я не могу заставить его работать, но я близок. Вот код, который у меня есть для главной страницы и страницы hello.html ....

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("hello.html","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400");
}
</script>


<script language="JavaScript">

function refreshParent() {
  window.opener.location.href = window.opener.location.href;

  if (window.opener.hello.html)

 {
    window.opener.hello.html.close()
  }
  window.close();
}
</script>


</head>

<body>

<script type="text/javascript">

var d=new Date();
document.write(d);

</script>

<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>
</html>

Вот hello.html ...

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
</script>
</head>
<body>

Hello

</body>
</html>

Ответы на вопрос(6)

Ваш ответ на вопрос