Solved

onclick() function

Posted on 2003-10-23
2
157 Views
Last Modified: 2010-04-09
what must i type on "onclick" in fact to do, the text-input clear, for example:

name: [name________] #default value

name: [_____________] #value when click (null)
0
Comment
Question by:paStiSSet
  • 2
2 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 50 total points
ID: 9608472
<input type=text onfocus="this.value = '';" ...>
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 9608474
onclick event would work too
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
convert Systemjs to Webpack 3 83
Need output in powershell ( Vertical format) 2 34
CSS - Centering an image 2 28
disable open new tab with right mouse click in <a> tag 3 20
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Find out what you should include to make the best professional email signature for your organization.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question