mark110384 Posted January 5, 2009 Share Posted January 5, 2009 Hey guys I have a slight problem with Internet Explorer, I have written a function that determines if the browser has been resized to by a specific percent. If the user resizes it too small then the browser will minimise to the preset minimum size for example 25% of the users screen if it goes below that then it will automatically resize to 25%. It works fine if there is one tab but when there is another tab open then it will not resize the browser. I am using self.resizeTo to resize it. Does anyone have any suggestions of a work around to this problem. Thanks Link to comment https://forums.phpfreaks.com/topic/139528-ie-window-resize-issue/ Share on other sites More sharing options...
mark110384 Posted January 6, 2009 Author Share Posted January 6, 2009 I have used the following to detect if the browser tab is selected and if it is then do the function, it doesn't work as I get a JS Error saying Access is Denied function onFocus(){ change_scroll() }; if (/*@cc_on!@*/false) { // check for Internet Explorer document.onfocusin = onFocus; } else { window.onfocus = onFocus; } Link to comment https://forums.phpfreaks.com/topic/139528-ie-window-resize-issue/#findComment-730704 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.