Skip to main content
added 1 character in body
Source Link
fyngyrz
  • 2.7k
  • 2
  • 39
  • 48

input autofocus, with onfocus event:

<INPUT onfocus="this.select()";" TYPE="TEXT" NAME="thing" autofocus> 

This lets you open a form with the desired element selected. It works by using autofocus to hit the input, which then sends itself an onfocus event, which in turn selects the text.

input autofocus, with onfocus event:

<INPUT onfocus="this.select()" TYPE="TEXT" NAME="thing" autofocus> 

This lets you open a form with the desired element selected. It works by using autofocus to hit the input, which then sends itself an onfocus event, which in turn selects the text.

input autofocus, with onfocus event:

<INPUT onfocus="this.select();" TYPE="TEXT" NAME="thing" autofocus> 

This lets you open a form with the desired element selected. It works by using autofocus to hit the input, which then sends itself an onfocus event, which in turn selects the text.

Source Link
fyngyrz
  • 2.7k
  • 2
  • 39
  • 48

input autofocus, with onfocus event:

<INPUT onfocus="this.select()" TYPE="TEXT" NAME="thing" autofocus> 

This lets you open a form with the desired element selected. It works by using autofocus to hit the input, which then sends itself an onfocus event, which in turn selects the text.