value (input elements)
< html | attributes
This page has been flagged with the following issues:
High-level issues:
| Applies to | ? |
|---|
Examples
This example uses the input type=text element to create an empty text control that can contain 15 characters without requiring the user to scroll to read all of the text.
<INPUT TYPE=text VALUE="" NAME="textbox" SIZE=15>
This example uses script to detect the content of the text box and display it in a dialog box.
<SCRIPT>
function detectEntry()
{
alert("Your name is " + textbox.value)
}
</SCRIPT>
Notes
Remarks
The purpose of the value property depends on the type of control as described in the following table. {
Syntax
Standards information
- HTML 4.01 Specification, Section 17.4
See also
Related articles
html
… further results"html" is not in the list of possible values (Canvas, CSS Font, CSS Layout, Animation, Audio, Background, Border, Box Model, CSS Attributes, CSSOM, Combinators, Deprecated, Document Structure, Exclusions, FileSystemAPI, Filters, Flexbox, Fonts, Generated and Replaced Content, Gradients, Grid Layout, HTML, Multimedia, Media Queries, Mobile, Multi-Column, Off-line Storage, Paged Media, Performance, Pointer Events, Pseudo-Classes, Pseudo-Elements, Regions, Responsive Web Design, Ruby, Scrollbar, Selectors, Security, Syntax, Tables, Text, Touch, Transforms, Transitions, Video, Visual Effects, Web Components, WebRTC, XHR) for this property.
Related pages (MSDN)
inputinput type=checkboxinput type=passwordinput type=textinput type=fileinput type=hiddeninput type=buttoninput type=radioinput type=resetinput type=submitinput type=rangeinput type=numberinput type=emailinput type=urlinput type=tel
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here