Get correct coordinates/size of webdialog

Trying to get correct left,top,weight, height of a webdialog:palette and save to cookies. But without getting an error the numbers are not correctly and can’t keep its size position. I use me.left, etc to save cookies… Any help on it? …
theLeft =
does not work, i think…

Correction: I mean of an instance of a webdialog class on a webpage.

Your code would get the Left for the page that holds the webdialog

theLeft = webdialog.left