Form Validation – Input Fields Text Changes at OnClick OnBlur OnFocus

by Hiroshi on 20-02-2008

We will be needing a js file and a page containing form input field to do this task. What we are planning to do is, The input field contains default value. Onclick default value disappears and allows the user to insert text. If the user types anything it remains there but if he does not write anything and clicks at next input field than the default value reappears in previous field.

{ Continue Reading }

Fieldset Around Data

by Hiroshi on 09-07-2007

Here is a little tutorial about how to draw a border with caption around the data or form. Example Look:

fieldset img Fieldset Around Data

{ Continue Reading }

Focus Form Field on Page Load

by Hiroshi on 09-07-2007

Some times you want that when the contact form be loaded, its focus should be in the first form field where user will start typing. For that you need to know that form name, the field name to focus and you need to call onload in the body tag of the web page. Let's try an example:

{ Continue Reading }

Onclick Change Input Text Field Background Color in HTML

by Hiroshi on 09-07-2007

While clicking in input text field of a form in HTML you can change its background color as in the the following example:

{ Continue Reading }