The DOMPoint interface's z property specifies the depth coordinate of a point in space.
DOMPoint
z
MDN Reference