Using SharePoint 2013, IE 11
Issue: Cannot add iframe in Content Editor WebPart. Source page added in iframe is not getting displayed in IE 11. Works fine in Firefox and chrome browsers.
Script used: <iframe id="iFrameBox" src="http://servername.com/page.html"></iframe>
Resolution: Add the script to load the source file on document ready function.
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$("#iFrameBox").attr("src","http://servername.com/page.html");
});
</script>
<iframe id="iFrameBox" src=""></iframe>
Issue: Cannot add iframe in Content Editor WebPart. Source page added in iframe is not getting displayed in IE 11. Works fine in Firefox and chrome browsers.
Script used: <iframe id="iFrameBox" src="http://servername.com/page.html"></iframe>
Resolution: Add the script to load the source file on document ready function.
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$("#iFrameBox").attr("src","http://servername.com/page.html");
});
</script>
<iframe id="iFrameBox" src=""></iframe>