[Javascript] Open a new window, then close it!
Rodney Myers
rodney at aflyingstart.net
Wed May 23 06:43:59 CDT 2001
Steve Hearne wrote:
> I would like to be able to;
>
> 1) Display an HTML window
> 2) Have that window automatically open a new window once it is displayed
<body ... onload="window.open(blah)">
> 3) Have that new window perform some ASP
The URL specified in the blah of onload="window.open(blah)" can be an
ASP page.
> 4) Have the new window shut itself once that code has been executed and finally.....
call a function containing
self.close()
This might be triggered by loading/writing a new page when the asp
script has run.
You have to decide what event you will use for this.
> 5) Return to the original window
self.opener.focus()
This would have to come before
self.close()
or there would be no window in which the script could run!
--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/
Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770
Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions
More information about the Javascript
mailing list