Assistance with JavaScript
July 10, 2006 10:46 PM
Subscribe
Javascript: How to focus on the original window after opening additional windows?
Hi,
I have a Javascript function that does the following:
window.open('http://jobsearchlog.com','jsl');
document.myform.submit();
opener.focus();
The window gets created and populated correctly.
The form submits and the original window displays a job ad.
I want the Originating window to get the focus at that point.
I have tried the following -
opener.focus();
window.focus();
document.window.focus();
I need to try to get a little sleep but would appreciate any assistance that you could provide.
Michael
posted by mickbw to computers & internet (5 comments total)
posted by purephase at 10:57 PM on July 10, 2006