faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 17 people (65%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How to change the Forecolor of the Textbox in HTML?

Apr 8th, 2008 18:37
ha mo, Dave Clark, sabareeswaren A,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sab,
     The following is an example of how you would change the 
foreground (text) color of a text box in a form:
var ele = document.forms['formName'].elements['fieldName'];
ele.style.color = 'blue';
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com