IE 9 and IE 10 cannot enter text into input text boxes from time to time

后端 未结 11 1834
傲寒
傲寒 2020-12-05 13:59

There is a web page with an iframe inside. Sometimes, Input text box controls, inside the iframe, are locked/ freezed. Users cannot enter text into them. But the text box ca

11条回答
  •  失恋的感觉
    2020-12-05 14:38

    The solution with jQuery worked on IE11 for me, not the other solutions.

    $(theIframeElement).empty().remove();

    An other solution working on IE9/10 was to set the iframe src to empty before deleting it

    iframe.src=""

    But this cause an exception "Access denied" on IE11 if you are using an older jQuery version < 1.11.1

    Some links: For information, jQuery also fixed this Issue for it's Dialog.js plugin that was displaying content in an iframe: http://bugs.jqueryui.com/ticket/9122

    jQuery bug fix to IE11 "access denied" error: http://bugs.jquery.com/ticket/14535

提交回复
热议问题