[Javascript] Open a new window, then close it!

Steve Hearne steve.hearne at mvc-ent.co.uk
Wed May 23 09:17:22 CDT 2001


Thanks for your help.  This is now written.
Steve

>>> rodney at aflyingstart.net 05/23/01 12:43PM >>>


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

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu 
http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list