ngx doc viewer

Solutions on MaxInterview for ngx doc viewer by the best coders in the world

showing results for - "ngx doc viewer"
Erika
20 Aug 2017
1function reloadIFrame() {
2var iframe = document.getElementById("iFrame");
3  console.log(frame.contentDocument.URL); //work control
4  if(iframe.contentDocument.URL == "about:blank"){
5    iframe.src =  iframe.src;
6  }
7}
8var timerId = setInterval("reloadIFrame();", 2000);
9
10$( document ).ready(function() {
11    $('#menuiFrame').on('load', function() {
12        clearInterval(timerId);
13        console.log("Finally Loaded"); //work control
14    });
15});