<html> <body> <button onclick="alert(this.getClientRects().length);">Client Rect</button> </body> </html>