Javascript Q & Eh...
Javascript Q & Eh...
Out of context: Reply #6
- Started
- Last post
- 11 Responses
- ernexbcn0
$(window).height(); and $(window).width(); are the viewport dimensions, the size of the client's browser window.
You can get dimensions for any element passing a selector, like:
$("#something div.box").height(); etc.