I'm using the following code with the script attached as a file to a page.
For whatever reasons it keeps showing the coordinates of the Save button as 0, 0 even though the button is in a middle of...
Here is the situation: I have a Cancel button on a page (which just closes the page), 'X' just regular Close button, and a Save button, which reloads the page.
I am trying to cancel browser closing during use of window.onbeforeunload (because I'm doing some context queries and the window closes before it's all done), and then close it with the...