I am loading iframe source document.getElementById('iframeID').src = source here
in function and that function is called again every second until my requirement is fulfilled.
When internet disconnected in between this process I get status cancelled in network panel and process continue when internet connected again (my requirement). so how can I catch this error and show error message to user.
I have already tried jQuery to assign src
and catch error but that didn't work and affected my required functionality.
I also tried using try/catch but it didn't work.