חיפוש בתמיכה

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Focus in an iframe with Javascript does not work in Firefox

  • אין תגובות
  • 1 has this problem
  • 9 views
more options

Does firefox not allow Javascript to manipulate focus inside of an iframe? Cross domain or not?

If I try to focus inside an input in an iframe on Firefox, nothing happens but it works in every other web browser.

Here is a very simple jsfiddle that does not work in Firefox because the preview pane is an iframe: http://jsfiddle.net/4b32fgd8/

Does firefox not allow Javascript to manipulate focus inside of an iframe? Cross domain or not? If I try to focus inside an input in an iframe on Firefox, nothing happens but it works in every other web browser. Here is a very simple jsfiddle that does not work in Firefox because the preview pane is an iframe: http://jsfiddle.net/4b32fgd8/