Setting focus to an embedded Flash movie/HTML embed element using Javascript/jQuery

Posted by ankit on Stack Overflow See other posts from Stack Overflow or by ankit
Published on 2009-12-26T13:45:20Z Indexed on 2010/04/29 4:07 UTC
Read the original article Hit count: 361

Is there a way to set focus to the embed HTML element using JavaScript? Test case: embedded YouTube videos on a page.

I have no control over the embedded Flash element. So, is there a way to set focus on it by using only JavaScript?

I read somewhere that calling the element.focus() method works only in IE. I need a browser-independent way that works in Chrome/Firefox.

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript