Created
May 2, 2012 11:42
-
-
Save Error-331/2576009 to your computer and use it in GitHub Desktop.
JavaScript note
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Compatibility | |
| ============= | |
| scrollWidth and scrollHeight | |
| ---------------------------- | |
| Not proper in IE 5.5, 6, 7 (http://www.quirksmode.org/dom/w3c_cssom.html), use something like this: | |
| if (navigator.appName == 'Microsoft Internet Explorer' && (document.compatMode == undefined || document.compatMode != 'CSS1Compat')) | |
| { | |
| this.WinHeight = Math.max(document.body.scrollHeight, document.body.clientHeight) + 'px'; | |
| this.IsQuirks = true | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment