Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The window.history takes focus now
Message
From
08/06/2001 12:07:05
 
 
To
08/06/2001 12:04:08
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00516591
Message ID:
00516982
Views:
15
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform