>I tried the code as you sent it and it works. It might be that the main window, which opens the new window in your case, takes longer to download than what I can re-create locally, and thus takes the focus after it finishes loading. As per my original reply, you might want to consider this, if it works for your scenario:
Yes, that would make sense as the original window takes time to load. However, it worked before.
>Submit the form using the form's TARGET attribute; this will automatically open a new window, where the URL in the ACTION attribute will open. Since you already know by the form items submitted what URL to generate (you are returning it to the client in window.open(...)), simply have the code processing the form return that URL to the target window. In ASP this would be accomplished via a Response.Redirect; in WC I am sure there is an equivalent method.
We can't take that decision at the form level as this information is only at the backend where the user has either configure or not to open in a new window.
>Otherwise another alternative would be to add to the destination page, an onload event handler like this:
>
>< body onload="window.focus()">
>
>
>This should ensure that the destination window will have the focus once it finishes loading up... I am running out of ideas {g}
Ok, I'll try that.