asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > Abakada DHTML Properties Reference: value Property

value Attribute


Sets or retrieves the value of the object.

Applies To:

Syntax

HTML N/A
Script object.value = sValue ]

Possible Values

sValue String specifying the value of the object.

The property is read/write with no default value.

Example

When the text area is clicked, the alert displays the value "Assigned Value".

<TEXTAREA onclick="alert ( this.value )">
This is the value of a TEXTAREA.
</TEXTAREA>
Applies To

HTMLAREA, TEXTAREA


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note