Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML DOM Input Search required property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 187 Views

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 More

HTML DOM Window stop() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 320 Views

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 More

How to Execute a Script Asynchronously in HTML5 ?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 566 Views

Script tag is used to make the webpage dynamic, however heavy scripts can result in slow rendering of the webpage which ultimately results in poor user experience. To solve this issue, we asynchronously execute the scripts in the webpage i.e. the JavaScript is downloaded in parallel with other website elements and starts to execute as soon as it is completed. To load scripts asynchronously two popular approaches are used − Async attribute − The scripts are downloaded in parallel and start to execute as soon as downloading is complete. Defer attribute − The scripts are downloaded in ...

Read More

HTML DOM Input Week readOnly Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 153 Views

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 More

HTML DOM Input Search type property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 165 Views

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 More

HTML DOM Textarea name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 178 Views

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 More

HTML DOM Input Week required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

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

HTML DOM Input Search value property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 585 Views

The HTML DOM Input Search value property is associated with input elements having type="search". This property allows you to get or set the current value of a search input field, making it useful for both displaying default values and retrieving user input programmatically. Syntax Following is the syntax for getting the value property − var value = searchObject.value; Following is the syntax for setting the value property − searchObject.value = text; Here, text is a string representing the value to be set in the search field. Return Value ...

Read More

HTML DOM Input Week step Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 191 Views

The HTML DOM Input Week step property sets or returns the legal number intervals for week input fields. This property determines how many weeks the user can step through when using the input controls (like arrow buttons or keyboard navigation). Syntax Following is the syntax for returning the step value − inputWeekObject.step Following is the syntax for setting the step value − inputWeekObject.step = number Parameters The number parameter accepts the following values − Value Description number A positive integer specifying ...

Read More

HTML DOM Input Submit autofocus property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 226 Views

The HTML DOM Input Submit autofocus property is associated with the HTML element's autofocus attribute. This property is used for setting or returning whether the submit button should be automatically focused when the page loads. When a submit button has autofocus enabled, it receives keyboard focus immediately after the page finishes loading, allowing users to press Enter to submit the form without clicking or tabbing to the button first. Syntax Following is the syntax for setting the autofocus property − submitObject.autofocus = true|false Following is the syntax for getting the autofocus property ...

Read More
Showing 13381–13390 of 61,297 articles
Advertisements