- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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 11367 Articles
AmitDiwan
68 Views
The HTML DOM Input Email Object represents an input HTML element with type email.SyntaxFollowing is the syntax −Creating an with type emailvar emailObject = document.createElement(“input”); emailObject.type = “email”;AttributesHere, “emailObject” can have the following attributes −AttributesDescriptionautocompleteIt provides suggestions based on previously typed text, if set to ‘ON’autofocusIf set to true ... Read More
AmitDiwan
265 Views
The HTML DOM Input Email pattern property sets/returns the regular expression corresponding to Email Input. The pattern attribute’s value is checked against the text typed in an email field.SyntaxFollowing is the syntax −Returning regular expressioninputEmailObject.patternSetting pattern to regular expressioninputEmailObject.pattern = ‘RegExp’ExampleLet us see an example of Input Email pattern property ... Read More
AmitDiwan
83 Views
The HTML DOM Input Email placeholder property sets/returns a string generally used to give hints to user of what the input text will look like.SyntaxFollowing is the syntax −Returning string valueinputEmailObject.placeholderSetting placeholder to stringValueinputEmailObject.placeholder = stringValueExampleLet us see an example of Input Email placeholder property − Input Email ... Read More
AmitDiwan
56 Views
The HTML DOM Input Email readOnly property sets/returns whether Input Email can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputEmailObject.readOnlySetting readOnlyto booleanValueinputEmailObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input email field is readOnly.falseIt defines that the input email field is ... Read More
AmitDiwan
63 Views
The HTML DOM Input Email size property returns/sets the size property for input Email. If not defined, this property returns ‘20’.SyntaxFollowing is the syntax −Returning size attributeinputEmailObject.sizeSet size property to a numberinputEmailObject.size = numberExampleLet us see an example of Input Email size property − Live Demo Input Email size ... Read More
AmitDiwan
67 Views
The HTML DOM lang property returns/sets a string depicting a language code such as ‘en’ for ‘english’ of the element’s content.SyntaxFollowing is the syntax −Returning language codeHTMLElementObject.langSetting lang attribute to a language codeHTMLElementObject = ‘lang_code’ExampleLet us see an example for HTML DOM lang property − Live Demo HTML DOM ... Read More
AmitDiwan
49 Views
The HTML DOM lastChild property returns the last element node as node object of the specified node.NOTE − This property does not ignore text and comment nodesSyntaxFollowing is the syntax −Returning lastChild nodenodeList.lastChildExampleLet us see an example for HTML DOM lastChild property − Live Demo HTML DOM lastChild ... Read More
AmitDiwan
39 Views
The HTML DOM lastElementChild property returns the last element node as node object of the specified node.NOTE − This property does ignore text and comment nodesSyntaxFollowing is the syntax −Returning lastElementChild nodenodeList.lastElementChildExampleLet us see an example for HTML DOM lastElementChild property − Live Demo HTML DOM lastElementChild ... Read More
AmitDiwan
48 Views
The HTML DOM lastModified property returns the date and time the current document was last modified.SyntaxFollowing is the syntax −Returning date and time −document.lastModifiedExampleLet us see an example for HTML DOM lastModified property − Live Demo HTML DOM lastModified form { width:70%; ... Read More
AmitDiwan
83 Views
The HTML DOM Legend form property returns the reference of enclosing form for Legend tag.SyntaxFollowing is the syntax −Returning reference to the form objectlegendObject.formExampleLet us see an example for Legend form property − Live Demo Legend form form { width:70%; margin: ... Read More