I "text"> Like the commentators, I'm not sure why he does not work, but it does not work in vanilla jes and without pocket the window object In order to be able to get better luck with it, with JQuery versions, browser compatibility, etc. I still recommend that the one you are trying to check is not working, whatever the BC There is a root problem, it will probably reveal itself again. $ (window) I want to get the size of the browser window using Width () and more
$ (window). Hi () function Although this two returns are empty
$ (window) is not zero, this "object" is returning I also have
$ (document) .width () < Trying to use / code> and
$ .hight () , these two tapes do not return, they are returning specific values, but they are bigger than the window size. Any ideas why the
$ window 2 values are zero? Var image = $ ("#image"); var hiResImage = $ ("################################################################################## < Hi-res-image "); var zoom = $ (" an id = 'zoom'>
pre> P>
window.innerWidth // just the actual document window window winnerheight window.outerWidth / / Bro toolbar, status bar, etc. window.outerH eight
Comments
Post a Comment