Paul A is right about why the discrepancy exists but the solution offered by Ngm is wrong (in the sense of JQuery).
The equivalent of clientHeight and clientWidth in jquery (1.3) is
$(window).width(), $(window).height()
More Related Contents:
- getElementsByClassName() doesn’t work in old Internet Explorers like IE6, IE7, IE8
- Can I force a link to open in a specific browser?
- Border Radius for IE8
- Using JavaScript to edit CSS gradient
- Javascript JSON Date parse in IE7/IE8 returns NaN
- .indexOf function on an array not working in IE7/8 using JavaScript
- css transitions on new elements
- When we using alert vs popup div tag? [closed]
- How can I tell if a DOM element is visible in the current viewport?
- How to dynamically create CSS class in JavaScript and apply?
- React Js conditionally applying class attributes
- Get element CSS property (width/height) value as it was set (in percent/em/px/etc)
- iOS 8 removed “minimal-ui” viewport property, are there other “soft fullscreen” solutions?
- How to close an open collapsed navbar when clicking outside of the navbar element in Bootstrap 3?
- JavaScript: Find DIV’s line-height, not CSS property but actual line-height
- CSS delivery optimization: How to defer css loading?
- JavaScript in or just before ?
- Bootstrap v2 Dropdown Navigation not working on Mobile Browsers
- How to build simple tabs with jQuery?
- CSS selector for targeting only immediate children and not other identical descendants
- Bootstrap Dropdown with Hover
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to window.scrollTo() with a smooth effect
- Can I transition the flex-grow of a flex box to produce an animation?
- How to disable Javascript when using Selenium?
- how to get the base url in javascript
- How to show hidden divs on mouseover?
- Firefox Web Console Disabled?
- Bootstrap Dropdown menu is not working
- Why can’t I use a Javascript function before its definition inside a try block?