Try:
var ProcessingWindow
window.open('','processingWin','height=250,width=500,left=250,right=250,scre
enX=250,screenY=250');
-----Original Message-----
From: Joe Fawcett [mailto:joefawcett@h...]
Sent: Tuesday, February 26, 2002 6:05 AM
To: javascript
Subject: [javascript] Re: parent windows etc
See below...
>From: mleonny@o...
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] parent windows etc
>Date: Tue, 26 Feb 2002 05:48:16
>
>I have a function which is as below.
>
>function OpenProcessingWindow(request)
>{
> text = "<html>\n<head>\n<title>Processing ... </title>\n<body>\n";
> text += "<center>\n<br><br><br><br><br>";
> text += "Processing your";
> text += request;
> text += "request now ... please wait.";
> text += "</center>\n</body>\n</html>\n";
>
> ProcessingWindow
>window.open('','processingWin','height=250,width=500,left=250,right=250,scr
>eenX=250,screenY=250');
> ProcessingWindow.document.write(text);
>}
>
>This function is triggered when users click on the 'Submit' button of a
>form, and what I'll like to do, is to close this window when the page
>(after submitting the form) returns.
>
>However, when I tried to reference it by 'ProcessingWindow', it says that
>'ProcessingWindow has no properties' which suggests to me that it doesnt
>"recognize" it.
>
>How should I go about doing it?
>
>Thanx.
I think you should close the document after writing it.
ProcessingWindow.document.write(text);
ProcessingWindow.document.close();
Joe
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com