Precondition:
I have an aspx-page with iframe inside. This iframe points to the url handled by MVC on the same site (it\'s hybrid site, both standard ASP.NET and ASP
Try loading the javascript at the end after complete web page is loaded. I feel the script is executing even before the iframe is completely loaded.
for some suggestion of scripting in IE9 view the given link below http://blogs.msdn.com/b/ie/archive/2010/06/25/enhanced-scripting-in-ie9-ecmascript-5-support-and-more.aspx