window.blur() not working with Firefox 4

Discussion in 'JavaScript' started by LiftBigEatBig, Jun 18, 2011.

  1. #1
    Hi there,

    I have a function that when activated opens a new window as a pop-under under the current browser window. It was working fine with all past version of IE and FF, now it has stopped working. Apparently Mozilla has changed one of the setting of FF 4 to prevent this: http://support.mozilla.com/en-US/questions/806756

    Here is the code I am using:

    function popup(page) {
    var myWin = window.open(page,"mywindow","menubar=1,resizable=1,status=1,toolbar=1,location=1,directories=1,scrollbars=1");
    opener = myWin.blur();
    }
    Code (markup):
    Any help on getting this code working with FF 4 is greatly appreciated! Thanks!
     
    LiftBigEatBig, Jun 18, 2011 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    I think 'opener' might be a reserved word in JavaScript. It's definitely a property name for the window object. Try a different variable name.
     
    rainborick, Jun 18, 2011 IP