window.focus() Problem

C

CES

All,
I'm trying to test if a browser is configured so that I can use popup
windows or if it has a popup blocker installed... the only solution I was
able to think of, was one that would pop up a window and then write a value
of popup=true into a form box (or cookie) and then submits the page.

The code below executes up to the point where the window regains focus
window.focus() but fails to execute any code after that point, specifically
executing the submit form.

popWin = window.open('popupTest.htm','','width=10,height=10');
popWin.blur();
window.focus();
document.form.submit();

Could someone please help me with how I would execute the submit line after
the window regains focus.
Any help on this will be appreciated.
CES
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top