Is there any way to find boundary of browser
actually I am showing a div popup. It's working fine but it not showing properly when it comes at boundaries.
so i want to change position of 开发者_如何学JAVAdiv at boundary.
window.innerWidth and window.innerHeight hold the physical dimensions of viewable space. You can then use the left, top, width and height CSS properties to see if an element is inside this boundary.
加载中,请稍侯......
精彩评论