<span style="font-size:14px;"> 1. The text box displays the default text:
<textarea>White Dove Boy</textarea>
<textarea>White Dove Boy</textarea>
2. Click the text box with the mouse, and the default text disappears:
<textarea onfocus=”if(value=='White Dove Boy') {value=' '}">White Dove Boy</textarea>
<textarea onfocus=”if(value=='White Dove Boy') {value=' '}">White Dove Boy</textarea>
3. Move the mouse to the text box, and the default text disappears:
<textarea onmouseover=”focus()” onfocus=”if(value=='White Dove Boy') {value='' '}">White Dove Boy</textarea>
<textarea onmouseover=”focus()” onfocus=”if(value=='White Dove Boy') {value='' '}">White Dove Boy</textarea>
4. Click the text box with the mouse, the default text disappears, click any area outside the text box, and the default text reappears again:
<textarea onfocus=”if(value=='White Dove Boy') {value='' '}" onblur="if(value=='' ') {value='White Dove Boy'}">White Dove Boy</textarea>
<textarea onfocus=”if(value=='White Dove Boy') {value='' '}" onblur="if(value=='' ') {value='White Dove Boy'}">White Dove Boy</textarea>
5. Move the mouse to the text box, the default text disappears, the mouse to move out of the text box, and the default text reappears:
<textarea onmouseover=”focus()” onfocus=”if(value==’White Dove Boy’) {value=’ ‘}” onmouseout=”blur()” onblur=”if (value==’ ‘’ ’) {value=’White Dove Boy’}”>White Dove Boy</textarea>
<textarea onmouseover=”focus()” onfocus=”if(value==’White Dove Boy’) {value=’ ‘}” onmouseout=”blur()” onblur=”if (value==’ ‘’ ’) {value=’White Dove Boy’}”>White Dove Boy</textarea>
6. Click the text box with the mouse, and any text in the text box disappears (including the default text and the text entered later):
<textarea onclick=”value=’ ‘’”>White Dove Boy</textarea>
<textarea onclick=”value=’ ‘’”>White Dove Boy</textarea>
7. Move the mouse to the text box, and any text in the text box disappears (including the default text and the text entered later):
<textarea onmouseover=”value=’ ‘’”>White Dove Boy</textarea>
<textarea onmouseover=”value=’ ‘’”>White Dove Boy</textarea>
8. Click the text box and select all the text in the text box:
<textarea onfocus="select()">White Dove Boy</textarea>
<textarea onfocus="select()">White Dove Boy</textarea>
9. Move the mouse to the text box and select all text in the text box:
<textarea onmouseover=”focus()” onfocus=”select()”>White Dove Boy</textarea>
<textarea onmouseover=”focus()” onfocus=”select()”>White Dove Boy</textarea>
10. After entering, the focus will be transferred from the current text box to the next text box:
<textarea onkeydown=”if(==13)=9″>White Dove Boy</textarea>
<textarea onkeydown=”if(==13)=9″>White Dove Boy</textarea>
11. After entering, the focus will be transferred from the current text box to the specified position:
<textarea onkeypress="return focusNext(this,'specified location id name',event)">White Dove Boy</textarea> </span>