I have a popup window. On PageLoad, it executes the following:
How can I close the window (using JavaScript, presumably) only after the user actually prints the screen (i.e. clicks the resulting "print" button")? When I tried to do a
immediately after the [tt]Window.print[/tt], it did not close...
Thanks very much!
Dot
Code:
Page.RegisterStartupScript("PrintCalendar", "<script language=""javascript"">" & System.Environment.NewLine & "window.print();" & System.Environment.NewLine & "</script>")
Code:
Page.RegisterStartupScript("ClosePopup", "<script language=""javascript"">self.close()</script>")
Thanks very much!
Dot