Can anyone suggest how to determine current window size for ie 7/8 or ie in general i need to calculate the current width in order to redirect to iframe so far i have tried this:
document.documentElement.offsetWidth – works only in ie9
document.body.offsetWidth – undefined
self.innerWidth – undefined
maybe anyone can suggest also a prototype approach?
Thanks guys!
if(document.documentElement.offsetWidth > (old_w + new_w)){
window.location = '/mylocation';
}
try this… As i have studied this is a cross-browser implementation for what you are looking: