Clear text field on focus of text field
Clear the text field when the user clicks on that.
Unless you are doing something specific where you only want to clear onclick, I would suggest (as others have noted) to use the onfocus actions instead. This way if someone is using tab to navigate it will also clear the default text.
You can also use onblur to check if it's empty to bring it back:
Der schönsten Tag
Bahasa Indonesia
Kami putra dan putri Indonesia mengaku berbahasa satu Bahasa Indonesia.
Itulah kalimat terakhir dalam Sumpah Pemuda yang di laksanakan para pemuda dan pemudi kita pada 28 Oktober 1928, salah satu bukti bahwa Indonesia memiliki kekayaan yang tak terhingga yaitu Bahasa Indonesia.
Labels:
indonesia