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 on Trending Technologies
Technical articles with clear explanations and examples
HTML DOM Textarea readOnly Property
The HTML DOM Textarea readOnly property sets or returns whether a textarea element is read-only. When set to true, users cannot modify the textarea content, but they can still select and copy the text. This property is useful for displaying non-editable content in textarea format while preserving the element's visual appearance. Syntax Following is the syntax for getting the readOnly property − textareaObject.readOnly Following is the syntax for setting the readOnly property − textareaObject.readOnly = true | false Return Value The property returns a boolean value − ...
Read MoreHow To Add An HTML Element Starting After One And Finishing Before Another One?
This article shows how to add an HTML element in between two existing elements using JavaScript. This is a common task when creating webpages, and can be achieved using the DOM manipulation methods. We will be using the JavaScript API to access and manipulate the elements on our webpage. The task we are going to perform in this article is adding an HTML element, starting after one and finishing before another one. For this, we are going to use the insertBefore() method along with other DOM manipulation techniques. Syntax Following is the syntax for the insertBefore() method ...
Read MoreHTML DOM Input Week stepDown( ) Method
The HTML DOM Input Week stepDown() method decreases the value of a week input field by a specified number of weeks. This method is useful for programmatically adjusting week values without direct user input manipulation. Syntax Following is the syntax for the stepDown() method − inputWeekObject.stepDown(number) Parameters The stepDown() method accepts the following parameter − number (optional) − A numeric value representing the number of weeks to decrease. If not specified, the default value is 1. Return Value The method does not return any value. It directly modifies ...
Read MoreHow to automatically transfer visitors to a new web page?
As a website owner or developer, there may be times when you need to automatically transfer visitors to a new web page. Whether it's because you've moved a page to a new URL or want to redirect visitors to a different section of your site, there are several different methods you can use to achieve this. In this article, we'll explore the different types of client-side redirects you can use to automatically transfer visitors to a new web page, and provide examples of how to implement each one. Meta Refresh Redirects One of the easiest ways to ...
Read MoreHow to create and read the value from cookies
Cookies are small pieces of data stored in the user's browser by web applications. They consist of name-value pairs and are sent back to the server with each HTTP request, allowing websites to remember user information across sessions. Syntax Following is the syntax to create a cookie using JavaScript − document.cookie = "cookieName=cookieValue; expires=date; path=/"; Following is the syntax to read cookies − var allCookies = document.cookie; Parameters cookieName − The identifier for the cookie (e.g., "username", "sessionId"). cookieValue − The data stored in the ...
Read MoreHTML DOM Input Week stepUp( ) Method
The HTML DOM Input Week stepUp() method is used to increase the value of a week input field by a specified number of weeks. This method provides a programmatic way to increment the week value without requiring user interaction. Syntax Following is the syntax for the stepUp() method − inputWeekObject.stepUp(number) Parameters The stepUp() method accepts the following parameter − number (optional) − A numeric value that specifies how many weeks to increase the input value by. If omitted, the default value is 1. Return Value This method does ...
Read MoreHTML DOM Input Submit form property
The HTML DOM Input Submit form property returns a reference to the form element that contains the submit button. If the submit button is not inside a form element, it returns null. This property is read-only and provides a way to access the parent form from a submit button element. Syntax Following is the syntax for the Input Submit form property − submitObject.form Return Value The property returns − A form object reference if the submit button is inside a form element null if the submit button is not contained within ...
Read MoreHTML DOM Textarea wrap Property
The HTML DOM Textarea wrap property gets and sets the value of the wrap attribute of a textarea element. This property controls how text wrapping behaves when the form is submitted to the server. Syntax Following is the syntax for getting the wrap property − object.wrap Following is the syntax for setting the wrap property − object.wrap = "soft" | "hard" Property Values The wrap property accepts the following values − soft − The text is wrapped visually but line breaks are not inserted when the ...
Read MoreHTML DOM Input Week type Property
The HTML DOM Input Week type property is used to get or set the type attribute of an input element that is initially of type "week". This property allows you to dynamically change the input type or retrieve its current type value using JavaScript. Syntax Following is the syntax for getting the type property − inputWeekObject.type Following is the syntax for setting the type property − inputWeekObject.type = stringValue Return Value The property returns a string representing the current type of the input element. For a week input, it ...
Read MoreHTML DOM Input Week value Property
The HTML DOM Input Week value property gets or sets the value of an HTML input element with type="week". This property returns a string in the format YYYY-WNN where YYYY is the year and NN is the week number (01-53). It allows JavaScript to programmatically read and modify week input values. Syntax Following is the syntax for getting the value − inputWeekObject.value Following is the syntax for setting the value − inputWeekObject.value = "YYYY-WNN" Parameters YYYY − A four-digit year (e.g., 2024) WNN − Week number from W01 ...
Read More