SyntaxFix
Write A Post
Hire A Developer
Questions
I solved it with window.length. But with this solution you can take current error (X-Frame or 404).
window.length
iframe.onload = event => { const isLoaded = event.target.contentWindow.window.length // 0 or 1 }
MSDN