When the page is loading with the code above, the input box has the text "This is my text."Code:<form> <input type='text' value='This is my text.' style='width:200px'> </form>
If the user puts his mouse on the box, he or she has to delete the default text for inputting another text.
I like to make it like the following.
(1) When the page is loading, the input box has the text "This is my text."
(2) If the user put his mouse on the input box, the text will be gone, and the input box becomes empty, and it is ready for the user's inputting another text.






Bookmarks