By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,681 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,681 IT Pros & Developers. It's quick & easy.

When does Window.open() call return control to caller?

P: n/a
All,

I have a tricky set of AJAX functionality that involves a popup window
and in order to keep the synchronization issues straight, I need to be
sure that I understand something about the Window.open() call.

If I have code that calls "window.open(url, name, features...)", does
the calling code:

a) block until the document (specified by url in the call) is fully
loaded in that new window

OR

b) immediately continue processing once the window is initially
displayed on the desktop?

Another way to put this is: "Is a call to window.open() asynchronous
with respect to the retrieval of the target url for that window?"

Thanks,
Wes Gamble

Jun 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Yes it is asynchronous. The execution of your calling code won't wait
until the document in the remote window is "loaded" (for some
definition of "loaded"). The separate window is essentially a separate
thread.
On May 31, 11:56 pm, Weyus <w...@att.netwrote:
All,

I have a tricky set of AJAX functionality that involves a popup window
and in order to keep the synchronization issues straight, I need to be
sure that I understand something about the Window.open() call.

If I have code that calls "window.open(url, name, features...)", does
the calling code:

a) block until the document (specified by url in the call) is fully
loaded in that new window

OR

b) immediately continue processing once the window is initially
displayed on the desktop?

Another way to put this is: "Is a call to window.open() asynchronous
with respect to the retrieval of the target url for that window?"

Thanks,
Wes Gamble

Jun 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.