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 258 of 840
HTML DOM Input URL form Property
The HTML DOM Input URL form property returns a reference to the form element that contains the input URL field. This property is read-only and provides access to the parent form object, allowing you to retrieve form properties like id, name, or action. Syntax Following is the syntax for accessing the form property − inputURLObject.form Return Value The property returns a reference to the HTMLFormElement object that contains the input URL field. If the input is not inside a form, it returns null. Example Following example demonstrates the Input URL form ...
Read MoreHTML DOM Input Radio defaultChecked Property
The HTML DOM Input Radio defaultChecked property determines whether a radio button was checked by default when the page first loaded. It returns true if the radio button has the checked attribute in the HTML markup, otherwise it returns false. This property reflects the initial state, not the current checked state. Syntax Following is the syntax for the Radio defaultChecked property − radioObject.defaultChecked Return Value The defaultChecked property returns a Boolean value − true − If the radio button has the checked attribute in HTML false − If the radio button ...
Read MoreHTML DOM console.table() Method
The HTML DOM console.table() method displays data in a well-organized tabular format in the browser's console. This method is particularly useful for visualizing complex arrays, objects, or arrays of objects in a readable table structure where each element becomes a row. Syntax Following is the syntax for the console.table() method − console.table(tableData, tableColumns); Parameters The console.table() method accepts the following parameters − tableData − A required parameter representing the data to display in the table. It can be an array, object, or array of objects. tableColumns − An ...
Read MoreHTML DOM Input Radio form Property
The HTML DOM Input Radio form property returns a reference to the form element that contains the given radio button. If the radio button is not inside a form, this property returns null. This is a read-only property that helps identify which form controls a specific radio button. Syntax Following is the syntax for the input radio form property − radioObject.form Return Value The form property returns − Form object − A reference to the form element that contains the radio button null − If the radio button is not inside ...
Read MoreHTML DOM Video playbackRate Property
The HTML DOM Video playbackRate property controls the speed at which a video plays. It returns a number representing the current playback speed, where 1.0 is normal speed, values greater than 1.0 increase speed, and values less than 1.0 decrease speed. Syntax Following is the syntax to get the current playback rate − mediaObject.playbackRate Following is the syntax to set a new playback rate − mediaObject.playbackRate = number Parameters number − A numeric value representing the playback speed. Common values include: 0.5 = Half speed (slow motion) ...
Read MoreHow elements float in HTML?
The float property in CSS allows elements to be positioned to the left or right side of their container, causing other content to wrap around the floated element. This property is commonly used for creating layouts where text flows around images or for positioning elements side by side. Syntax Following is the syntax for the CSS float property − selector { float: left | right | none | inherit; } The float property accepts the following values − left − The element floats to the left of its container ...
Read MoreHTML DOM Input URL name Property
The HTML DOM Input URL name property gets or sets the value of the name attribute of an HTML input element with type="url". This property is essential for identifying form data when submitted to the server and for accessing the element via JavaScript. Syntax Following is the syntax for returning the name value − inputURLObject.name Following is the syntax for setting the name to a new value − inputURLObject.name = 'string' Return Value The property returns a string representing the value of the name attribute of the input URL ...
Read MoreHTML DOM Input Radio name Property
The HTML DOM Input Radio name property is used for setting or returning the name attribute of a radio button input field. The name attribute is crucial for identifying form data after submission to the server and for grouping radio buttons together so only one can be selected at a time. Syntax Following is the syntax for setting the name property − radioObject.name = "name" Following is the syntax for getting the name property − var name = radioObject.name Parameters The name parameter is a string that specifies the ...
Read MoreHTML DOM Form autocomplete Property
The HTML DOM Form autocomplete property is associated with the autocomplete attribute of the form element. This property allows you to set or return the autocomplete attribute value of a form, controlling whether the browser should automatically complete form fields based on previously entered values. When autocomplete is enabled ("on"), the browser suggests values based on user's previous input. When disabled ("off"), users must manually enter all values without browser assistance. The autocomplete property can be overridden for specific input fields within the form. Syntax Following is the syntax for setting the autocomplete property − ...
Read MoreHTML DOM Input Radio object
The HTML DOM Input Radio object represents an element with type="radio". Radio buttons allow users to select one option from a group of related choices. The Input Radio object provides properties and methods to dynamically create, access, and manipulate radio button elements using JavaScript. Syntax Following is the syntax for creating an input radio object − var radioElement = document.createElement("INPUT"); radioElement.setAttribute("type", "radio"); Following is the syntax for accessing an existing input radio object − var radioElement = document.getElementById("radioId"); Properties Following are the key properties of the Input Radio ...
Read More