본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

javascript window.focus error

  • 2 답장
  • 3 이 문제를 만남
  • 1 보기
  • 최종 답변자: Col_Boogie

more options

Created window with window.open If I remove window from top, window.focus() does not work. Expecting new window to come back on top. See http://www.americasfreedompressalliance.us/VNotes2.html as example, all HTML code included Works properly with IE

Created window with window.open If I remove window from top, window.focus() does not work. Expecting new window to come back on top. See http://www.americasfreedompressalliance.us/VNotes2.html as example, all HTML code included Works properly with IE

선택된 해결법

Firefox has a setting that governs whether scripts can change the window z-order. By default, scripts are supposed to be disabled from doing that. You can test whether that is the issue:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste dom.d and pause while the list is filtered

(3) Double-click the dom.disable_window_flip preference to switch the value from true to false

Does that make any difference?

문맥에 따라 이 답변을 읽어주세요 👍 3

모든 댓글 (2)

more options

선택된 해결법

Firefox has a setting that governs whether scripts can change the window z-order. By default, scripts are supposed to be disabled from doing that. You can test whether that is the issue:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste dom.d and pause while the list is filtered

(3) Double-click the dom.disable_window_flip preference to switch the value from true to false

Does that make any difference?