JavaScript onclick clear textbox; if nothing entered re-display default text

Cancelled

There is a textbox with the text "Keywords" in it.

If the user clicks in the textbox, the contents of it should clear.

Currently I have the above working using JavaScript's onclick event.

This is what I need:

If the user then moves focus away from the textbox without having entered something, the text "Keywords" should re-display in the textbox.

Example:

Textbox has "Keywords" written in it.

User click in the textbox and the textbox becomes blank.

The user clicks somewhere else on the screen. The textbox should get re-populated with the text "Keywords".

Skills: Javascript

See more: clear textbox entered javascript onclick, javascript entered text display, onclick display textbox, javascript clear textbox, clear textbox text entered textbox javascript, clear, event javascript, javascript click event, click clear, javascript clear default text, textbox, onclick, javascript display running total entered, entered user, display text javascript, using javascript, display hidden text javascript, javascript onclick, display select text textbox using javascript, display text using javascript, javascript textbox, flash display external text file, extjs prompt default text, javascript display hide text, text webpage textbox

Project ID: #3979594

31 freelancers are bidding on average $39 for this job

toinnisfree

quick pro help. escrow required.

$30 USD in 0 days
(65 Reviews)
6.0
dwa

I'm ready to assist. It's 10 minutes task. So let's start.

$30 USD in 0 days
(56 Reviews)
5.4
acesolution

Lets do it now....Thanks

$35 USD in 1 day
(31 Reviews)
5.4
thangtqvn

Let i done it in some minutes

$30 USD in 0 days
(32 Reviews)
5.2
wsfreelanzer

Hi, i am PHP Developer. I reviewed your requirement. I can do this project. Please check more details on private message. Thanks, Raj

$30 USD in 1 day
(10 Reviews)
4.3
anonymed

can send you the solution right now, pm me

$30 USD in 0 days
(2 Reviews)
4.3
pixecs

Hello sir, i'm ready for your project.

$30 USD in 0 days
(14 Reviews)
4.2
webxtreams

ready to finish sir

$30 USD in 0 days
(24 Reviews)
3.9
slaaxy

I have read your project details and can help you solve this now.

$30 USD in 0 days
(10 Reviews)
3.7
bhumphries

Hello, I can take care of this right now. Accept my bid and I can provide your solution within the hour. Thanks. Ben.

$30 USD in 0 days
(2 Reviews)
3.7
locdev

Hi will be ready in 1 hour. communication on skype or email Pease check example of the simmilar function I did on http://www.landofcash.net top right login fields.

$30 USD in 1 day
(14 Reviews)
3.6
ibbuzz

I can do this right now

$30 USD in 0 days
(7 Reviews)
3.0
NulogeCorp

HERE ---- YOUR FREELANCER FROM THE LAST 2 PROJECTS !!!!! Check inbox!

$35 USD in 0 days
(3 Reviews)
2.1
prabhatsaini

Check PM for Free Add On Bonus

$30 USD in 1 day
(3 Reviews)
1.9
amin6106

I have read your requirement, ready to start for details read my message.

$30 USD in 0 days
(1 Review)
2.0
webkingaman5

Hi !! Will accomplish it now.. Please check the message.. Thanks!!

$30 USD in 0 days
(1 Review)
1.6
stefan2012

Hi.I'm ready to start. Regards, Stefan.

$30 USD in 1 day
(4 Reviews)
1.3
joystick220

Ready to do.

$30 USD in 0 days
(1 Review)
1.3
amanmahal07

Ready to start.Regards

$30 USD in 1 day
(1 Review)
1.0
gategate

Ready to finish.

$30 USD in 0 days
(1 Review)
1.0