The ViewPortTop and ViewPortLeft return the y and x coordinates of where the document appears in the viewport, respectively. For example, let’s say you had a large document that you had to scroll across and down. As you scrolled right, you are moving away from the left side of the document, and the value of ViewPortLeft would increase.