window.focus() Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CES

    window.focus() Problem

    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('po pupTest.htm','' ,'width=10,heig ht=10');
    popWin.blur();
    window.focus();
    document.form.s ubmit();

    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


  • CES

    #2
    !!!! Ignore this post I asked the wrong question!!!!!

    !!!! Ignore this post I asked the wrong question!!!!!


    Comment

    Working...