I have a web application that uses the onreadystatechange event to detect when a page inside an iframe has finished loading.
This works perfectly on IE versions prior to 11 and it has been very useful in allowing me to show a 'Loading...' message.
In IE11 the event just does not fire. I've checked that the code I am using is correct so perhaps this is a bug in IE11.
According to MSDN I should be able to handle this event in a number of ways, I've tried them all with no success.
MSDN ms536957
It works fine if I use IE11 in Document mode 10 or earlier.
Heres my code, any suggestions would be much appreciated.
Dan
<!DOCTYPE HTML><html><head><title>Onreadystatechange Test</title><script language="javascript" type="text/javascript"> window.onload = function () { var iframe = document.getElementById('myframe'); iframe.onreadystatechange = function () { alert('changed'); } }</script></head><body><iframe id="myframe" name="myframename" frameborder="1" src="about:blank"></iframe><a href="http://www.msdn.com/" target="myframename">Test</a></body></html>