javascript - <textarea onclick="this.value; this.select();"> ? What kind of trick is this? -
working somebody's code, saw this:
<textarea onclick="this.value; this.select();">(some predefined stuff)</textarea> what kind of trick / hack , supposed do?
the statement
this.value; will have no effect. following statement:
this.select(); will cause contents of <textarea> selected.
Comments
Post a Comment