ngx doc viewer example
Example: ngx-doc-viewer
function reloadIFrame() {
var iframe = document.getElementById("iFrame");
console.log(frame.contentDocument.URL); //work control
if(iframe.contentDocument.URL == "about:blank"){
iframe.src = iframe.src;
}
}
var timerId = setInterval("reloadIFrame();", 2000);
$( document ).ready(function() {
$('#menuiFrame').on('load', function() {
clearInterval(timerId);
console.log("Finally Loaded"); //work control
});
});