views:

222

answers:

1

How Do I remove the focus from a swf using javascript? Now I use jQuery and I can set the focus but using blur does not work on a swf.

--EDIT--

Only Firefox and IE seems to get Focus in Chrome & Opera not

$("#ebookContainer").hover(
  function () {
    this.onmousewheel = function(){            
        return false
    };
    $('#ebook').focus();
  },
  function () {
    this.onmousewheel = function() {            
        return true;
    }
    $('#ebook').blur();
  }
);
+1  A: 

Try document.body.focus() and see if that does the trick.

Robusto
Chris