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

W

Weyus

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
 
C

ChrisHolland@InternetBrands

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top