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


Type: boolean
If set to true, the contents of the textbox are selected when focused; otherwise, the cursor is left unchanged.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Marsf, Enn, Mgjbot, Bedi
 Last updated by: Sheppy,