1

Im using this code to refresh the parent window and close the popup window..Is there any way to minimize or change the size of the popup window intead of closing it?

<script language="JavaScript">
<!--
function refreshParent() {
  window.opener.location.href = window.opener.location.href;

  if (window.opener.progressWindow)

 {
    window.opener.progressWindow.close()
  }
  window.close();
}
//-->
</script>
San Jay
  • 593
  • 1
  • 4
  • 4
  • 1
    http://stackoverflow.com/questions/3641648/the-javascript-resizeto-function-not-working-in-chrome-and-opera – galchen Oct 28 '11 at 04:04

2 Answers2

1

You can use window.resizeTo() method. See Example

mefallit
  • 106
  • 1
  • 4
0

Try:

function changeScreenSize(w, h)
{
    window.resizeTo(w, h)
}
Nikola K.
  • 7,093
  • 13
  • 31
  • 39
CloudyMarble
  • 36,908
  • 70
  • 97
  • 130
  • This isn't compatible with everything. More [here](http://stackoverflow.com/questions/3641648/the-javascript-resizeto-function-not-working-in-chrome-and-opera). – Bojangles Oct 28 '11 at 07:13