Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by AmitDiwan
Page 273 of 840
HTML DOM Input Email form Property
The HTML DOM Input Email form property is a read-only property that returns a reference to the form element that contains the input email field. This property provides access to the parent form element, allowing you to retrieve form attributes and manipulate form behavior through JavaScript. Syntax Following is the syntax for accessing the form property − inputEmailObject.form This property returns a reference to the HTMLFormElement object that contains the email input field. If the input field is not inside a form, it returns null. Return Value The form property returns − ...
Read MoreHTML DOM Input Email maxLength Property
The HTML DOM Input Email maxLength property controls the maximum number of characters allowed in an email input field. This property returns or sets the maximum character limit for user input and returns -1 if no limit is defined. Syntax Following is the syntax for returning the maxLength property − inputEmailObject.maxLength Following is the syntax for setting the maxLength property − inputEmailObject.maxLength = number Parameters The number parameter represents a positive integer specifying the maximum number of characters allowed in the email input field. Setting it to -1 removes ...
Read MoreHTML DOM Input Email multiple Property
The HTML DOM Input Email multiple property controls whether an email input field can accept multiple email addresses separated by commas. When set to true, users can enter multiple valid email addresses in a single input field. Syntax Following is the syntax for getting the multiple property value − inputEmailObject.multiple Following is the syntax for setting the multiple property − inputEmailObject.multiple = boolValue Parameters The boolValue parameter can be the following − Value Description true The input email field accepts multiple ...
Read MoreHTML DOM Input Email name Property
The HTML DOM Input Email name property returns or sets the value of the name attribute of an email input element. This property is commonly used for form data identification and JavaScript manipulation. Syntax Following is the syntax for getting the name property − inputEmailObject.name Following is the syntax for setting the name property − inputEmailObject.name = 'string' Parameters string − A string value that specifies the name of the email input element. Return Value The property returns a string representing the current ...
Read MoreHTML DOM Input Email Object
The HTML DOM Input Email Object represents an HTML element with type="email". This object provides properties and methods to interact with email input fields through JavaScript, allowing you to get, set, and manipulate email field attributes and values dynamically. Creating an Input Email Object You can create an Input Email Object in two ways − Using document.createElement() Following is the syntax to create an email input element dynamically − var emailObject = document.createElement("input"); emailObject.type = "email"; Using getElementById() Following is the syntax to access an existing email input element − ...
Read MoreHTML DOM Input Email pattern Property
The HTML DOM Input Email pattern property is used to set or return the value of the pattern attribute of an email input field. This property defines a regular expression that the email input value is checked against during form validation. Syntax Following is the syntax for getting the pattern value − inputEmailObject.pattern Following is the syntax for setting the pattern value − inputEmailObject.pattern = "RegExp" Parameters The pattern property accepts the following parameter − RegExp − A string containing a regular expression that defines the valid ...
Read MoreHTML DOM Input Email placeholder Property
The HTML DOM Input Email placeholder property sets or returns a string that provides hints to users about what kind of input is expected in an email field. The placeholder text appears in the input field when it is empty and disappears when the user starts typing. Syntax Following is the syntax for returning the placeholder value − inputEmailObject.placeholder Following is the syntax for setting the placeholder value − inputEmailObject.placeholder = stringValue Parameters stringValue − A string that specifies the placeholder text to be displayed in the email ...
Read MoreHTML DOM Input Email readOnly Property
The HTML DOM Input Email readOnly property sets or returns whether an email input field can be modified by the user. When set to true, the field becomes read-only and users cannot edit its content, though they can still select and copy the text. Syntax Following is the syntax for returning the readOnly property − inputEmailObject.readOnly Following is the syntax for setting the readOnly property − inputEmailObject.readOnly = booleanValue Parameters The booleanValue parameter accepts the following values − Value Description true ...
Read MoreHTML DOM Input Email required Property
The HTML DOM Input Email required property determines whether an email input field must be filled out before submitting a form. This property corresponds to the required HTML attribute and provides a way to access and modify the required state of email input elements using JavaScript. Syntax Following is the syntax for getting the required property value − inputEmailObject.required Following is the syntax for setting the required property − inputEmailObject.required = booleanValue Parameters The booleanValue parameter can be one of the following values − Value ...
Read MoreHTML DOM Input Email size Property
The HTML DOM Input Email size property returns or sets the size attribute of an input email field. This property determines the visible width of the input field in characters. If not specified, the default value is 20. Syntax Following is the syntax for returning the size property − inputEmailObject.size Following is the syntax for setting the size property − inputEmailObject.size = number Parameters The size property accepts a numeric value representing the number of characters the input field should display. The value must be a positive integer. Common ...
Read More