Input Email select() 方法

定义和用法

select() The method is used to select the content of the email text field.

Example

Select the content of the email text field:

document.getElementById("myEmail").select();

Try it yourself

Syntax

emailObject.select()

Parameters

None.

Technical details

Return value:

No return value.

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support