467,912 Members | 1,568 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,912 developers. It's quick & easy.

window.focus() Problem

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
Jul 20 '05 #1
  • viewed: 1174
Share:
1 Reply
CES
!!!! Ignore this post I asked the wrong question!!!!!
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bilal | last post: by
2 posts views Thread by Dom Nicholas | last post: by
2 posts views Thread by Martin Nadoll | last post: by
2 posts views Thread by Elsa Luiz | last post: by
2 posts views Thread by carlor | last post: by
13 posts views Thread by tochiromifune | last post: by
4 posts views Thread by Spizzat2 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.