Calling a Method with a Function Pointer without ".call" or ".bind"
Previous versions of Windows Internet Explorer supported caching a pointer to a method and then using the cached pointer to call the method. This support was removed in Windows Internet Explorer 9 to increase interoperability with other browsers.
Now you must specify the target for the method call just as you do in all other browsers. So while this code works in Windows Internet Explorer 8 and earlier:
Now it fails in Internet Explorer 9 just as it fails in all other browsers. An easy fix for this issue is to use the call method (a property of all functions) to explicitly provide the appropriate calling object:
d.call(document, "<script language="VBScript">”);
var d = document.writeln.bind(document); d("<script language=VBScript>"); // Now this is OK.
Build date: 9/28/2012