IE 8 defaultView equivalent
parentWindow. So:
var doc = el.ownerDocument;
var win = ('defaultView' in doc) ? doc.defaultView : doc.parentWindow;
var win = doc.defaultView || doc.parentWindow;
should do the trick too.
parentWindow. So:
var doc = el.ownerDocument;
var win = ('defaultView' in doc) ? doc.defaultView : doc.parentWindow;
var win = doc.defaultView || doc.parentWindow;
should do the trick too.