What is view port in html and give some example to access the view port details.
+2
A:
The viewport is the part of the webpage that the user can currently see. The scrollbars move the viewport to show other parts of the page.
Follow this article's instructions to get the viewport dimensions in Javascript.
Matchu
2010-05-30 17:58:20
And to avoid any confusion, it is neither the size of the windows of your brower nor the screen resolution. For the same window size, a browser with more toolbars displayed will have a smaller viewport.
Felipe Alsacreations
2010-05-30 18:17:15