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 266 of 840
HTML DOM Textarea disabled Property
The HTML DOM Textarea disabled property is used to get or set whether a textarea element is disabled. When disabled, the textarea cannot receive user input and appears grayed out to indicate its inactive state. Syntax Following is the syntax for returning the disabled status − object.disabled Following is the syntax for setting the disabled status − object.disabled = true | false Return Value The property returns a Boolean value − true − The textarea is disabled false − The textarea is enabled (default) Example ...
Read MoreHTML DOM Input Search object
The HTML DOM Input Search object represents an input element with type="search" in the Document Object Model. This object provides properties and methods to manipulate search input fields dynamically through JavaScript, allowing you to create, access, and modify search functionality on web pages. Syntax Following is the syntax for creating an Input Search object − var searchElement = document.createElement("INPUT"); searchElement.setAttribute("type", "search"); Following is the syntax for accessing an existing Input Search object − var searchElement = document.getElementById("searchId"); Properties Following are the properties for the Input Search object − ...
Read MoreHTML DOM Bold object
The HTML DOM Bold object represents the HTML element in the Document Object Model. The tag is used to make text appear bold without conveying any extra importance or emphasis. The Bold object provides methods and properties to create, access, and manipulate elements dynamically using JavaScript. Syntax Following is the syntax for creating a Bold object − var boldElement = document.createElement("B"); To access an existing element by its ID − var boldElement = document.getElementById("boldId"); Properties The Bold object inherits all properties from the generic HTML ...
Read MoreHTML DOM Input Search placeholder property
The HTML DOM Input Search placeholder property is used for setting or returning the placeholder attribute value of an input search field. The placeholder property provides users with a hint about the expected input by displaying greyed-out text inside the search field. This text disappears when the user begins typing and is not submitted with the form data. Syntax Following is the syntax for setting the placeholder property − searchObject.placeholder = text Following is the syntax for getting the placeholder property − var placeholderText = searchObject.placeholder Here, text represents the ...
Read MoreHTML DOM Input Search required property
The HTML DOM Input Search required property is associated with the required attribute of an element. This property sets or returns whether a search input field must be filled out before submitting the form. When set to true, the browser prevents form submission if the required search field is left empty. Syntax Following is the syntax for setting the required property − searchObject.required = true|false Following is the syntax for getting the required property − var isRequired = searchObject.required; Property Values The required property accepts the following boolean ...
Read MoreHTML DOM Window stop() Method
The HTML DOM Window stop() method provides functionality to stop loading the resources of a window programmatically. This method is equivalent to clicking the browser's stop button and halts the loading of all resources including images, stylesheets, and scripts for the current window. Syntax Following is the syntax for the Window stop() method − window.stop() The method takes no parameters and returns no value. It simply stops the loading process of the current window. How It Works When window.stop() is called, it immediately halts all ongoing resource loading for that specific window. ...
Read MoreHTML DOM Input Week readOnly Property
The HTML DOM Input Week readOnly property controls whether a week input field can be modified by the user. When set to true, the input becomes read-only and cannot be changed. This property is useful for displaying week values that should not be edited after certain conditions are met. Syntax Following is the syntax for getting the readOnly property value − inputWeekObject.readOnly Following is the syntax for setting the readOnly property − inputWeekObject.readOnly = booleanValue Return Value The readOnly property returns a boolean value indicating whether the input week ...
Read MoreHTML DOM Input Search type property
The HTML DOM Input search type property is associated with input elements that have type="search". This property returns the string "search" for search input elements and can be used to identify or verify the input type programmatically. The search input type creates a specialized text field optimized for search queries. Most browsers render it with rounded corners and may include features like a clear button (×) to quickly empty the field. Syntax Following is the syntax for getting the search type property − searchObject.type Following is the syntax for setting the type property ...
Read MoreHTML DOM Textarea name Property
The HTML DOM Textarea name property returns or sets the value of the name attribute of a textarea element. The name attribute is used to identify the textarea when form data is submitted to the server. Syntax Following is the syntax for returning the name property − textareaObject.name Following is the syntax for setting the name property − textareaObject.name = "nameValue" Return Value The property returns a string representing the name attribute of the textarea element. If no name attribute is set, it returns an empty string. Getting ...
Read MoreHTML DOM Input Week required Property
The HTML DOM Input Week required property sets or returns whether a week input field must be filled out before submitting a form. When set to true, the browser will prevent form submission until the user selects a valid week value. Syntax Following is the syntax to return the required property − inputWeekObject.required Following is the syntax to set the required property − inputWeekObject.required = booleanValue Return Value The property returns a boolean value indicating whether the week input field is required (true) or not (false). Boolean Values ...
Read More