Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


« XPCOM API Reference


The Length function returns the number of storage units in the string's internal buffer (not including the null-terminator if present).

 size_type Length() const;

Document Tags and Contributors

 Contributors to this page: Sheppy, Pmash
 Last updated by: Sheppy,