If you need the bounding rectangle relative to the top-left corner of the document, just add the current scrolling position to the top and left properties (these can be obtained using window. This function will automatically be triggered whenever the scroll event triggers.
By current I mean the window I'm programming in, for example if the console is in the top left of the screen I should get X = 0, Y = 0.Here are the win32 api console functions. ClientSize Whether or not to display the browser in full-screen mode. Set the position of the total 4 windows, so they form a 2X2 grid. Get pulls the current position, state, and size and enters the values automatically.
Is there a way to get the cursor position in terms of the program window? The information We may be needed the scroll position of a web page in the browser window.
pathname returns the path and filename of the current page.