1. The dotted box when the cancel button is pressed
| Add the attribute value hideFocus or HideFocus=true in the input |
2. Read-only text box content
| Add attribute value readonly in input |
3. Prevent TEXT documents from being cleared after retreat (the style content can be used as a class reference)
| <INPUT style=behavior:url(#default#savehistory); type=text id=oPersistInput> |
4.ENTER key allows the cursor to move to the next input box
| <input onkeydown=if(event.keyCode==13)event.keyCode=9 > |
5. Only in Chinese (with flashing)
| <input onkeyup=value=value.replace(/[ -~]/g,'') onkeydown=if(event.keyCode==13)event.keyCode=9> |
6. Only numbers (with flashes)
| <input onkeyup=value=value.replace(/[^/d]/g,'') onbeforepaste=clipboardData.setData('text',clipboardData.getData('text').replace(/[^/d]/g,''))> |