Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 Javascript Articles

Sometimes when designing a web page we may take the decision to place the instructions associated with a text box inside it. This takes up less space on the page and can make the intent of the box clearer. For example:

<input type="text" value="Search" ID="Text1" NAME="tbxSearch">

Now the user knows the purpose of the text box and the type of content to be entered. However, first the existing text must be deleted, before adding the required values. We can improve on this situation with a small piece of javascript to blank the content of the text box when a mouse is clicked inside it.

<input type="text" id= "tbxSearch" value="Search" OnClick=" this.value=''">

 

NAT February 2006


This article viewed: 1512 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Tuesday, May 13, 2008