I am trying to get the screen pixel coordinates of a rectangle in SVG via java script. When the rectangle has been clicked, I can figure out its width, height, x and y posit
You can also check for the existence of the elm.getScreenBBox() method, which does what it sounds like. It's defined in SVG Tiny 1.2.
elm.getScreenBBox()
See the files here, which include a fallback implementation of getScreenBBox that should work in all browsers.
getScreenBBox