window.close not working in page

  • Thread starter Thread starter David C
  • Start date Start date
D

David C

I have an aspx page that I am opening as a pop-up from another aspx page via
javascript window.open(.....). In the page that is opened, I have code to
populate some info and then print the page. I want it to close after
printing so I have the following javascript after the end of the form block.

window.print();

window.opener = 'viahome';

window.close();


What am I missing? Thanks.

David
 
Back
Top