
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
194 Views
The HTML DOM Label htmlFor property returns/sets the value of for attribute.SyntaxFollowing is the syntax −Returning value of for attribute −labelObject.htmlForExampleLet us see an example for Label htmlForproperty − Live Demo Label htmlFor form { width:70%; margin: 0 auto; ... Read More

AmitDiwan
206 Views
The HTML DOM Label Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar labelObject = document.createElement(“LABEL”)PropertiesHere, “LabelObject” can have the following properties −PropertyDescriptionControlIt returns the control of the labelformIt returns a reference of enclosing form that contains the labelhtmlForIt returns/sets the value of the for ... Read More

AmitDiwan
120 Views
The HTML DOM Input DatetimeLocal type property returns/sets type of Input DatetimeLocal.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.typeSetting type to string valueinputDatetimeLocalObject.type = stringValueString ValuesHere, “stringValue” can be the following −stringValueDetailsdateIt defines that input type is datedatetime-localIt defines that input type is datetime-localcheckboxIt defines that input type is checkboxtextIt defines ... Read More

AmitDiwan
123 Views
The HTML DOM Input DatetimeLocal value property returns a string, which is the value of the value attribute of input datetimeLocal. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.valueSetting value attribute to a string valueinputDatetimeLocalObject.value = ‘String’ExampleLet us see an example of Input ... Read More

AmitDiwan
160 Views
The HTML DOM Input Email autocomplete property sets/returns whether autocomplete is enabled or disabled. If enabled, it shows previously typed values.SyntaxFollowing is the syntax −Returning value - on/offinputEmailObject.autocompleteSetting autocomplete to valueinputEmailObject.autocomplete = valueValuesHere, “value” can be the following −valueDetailsonIt defines that input has autocomplete enabled, it is also the default.offIt ... Read More

AmitDiwan
119 Views
The HTML DOM Input Email autofocus property sets/returns whether Input Email is focused upon initial page load.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputEmailObject.autofocusSetting autofocus to booleanValueinputEmailObject.autofocus = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that input will be autofocused on page load.falseIt is the default value and ... Read More

AmitDiwan
110 Views
The HTML DOM Input Email defaultValue property sets/returns the default value corresponding to Email Input. The value attribute changes as the user types in the email input but default value does not change.SyntaxFollowing is the syntax −Returning string valueinputEmailObject.defaultValueSetting defaultValue to stringinputEmailObject.defaultValue = ‘string’ExampleLet us see an example of Input ... Read More

AmitDiwan
128 Views
The HTML DOM Input Email disabled property sets/returns whether Input Email is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputEmailObject.disabledSetting disabled to booleanValueinputEmailObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input email is disabled.falseIt defines that the input email is not disabled ... Read More

AmitDiwan
109 Views
The HTML DOM Input Email form property returns the reference of enclosing form for input Email.SyntaxFollowing is the syntax −Returning reference to the form objectinputEmailObject.formExampleLet us see an example of Input Email form property − Live Demo Input Email form form { width:70%; ... Read More

AmitDiwan
101 Views
The HTML DOM Input Email maxLength property returns/sets the maxLength property for input Email. If not defined this property returns ‘-1’.SyntaxFollowing is the syntax −Returning maxLength attributeinputEmailObject.maxLengthSet maxLength property to a numberinputEmailObject.maxLength = numberExampleLet us see an example of Input Email maxLength property − Live Demo Input Email maxLength ... Read More