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 Input Range max property
The HTML DOM Input Range max property is used for setting or returning the max attribute value for the range slider control. This attribute indicates the maximum value of the slider control and is often used with the min property to create a range of values between which the slider can move. Syntax Following is the syntax for setting the Range max property − rangeObject.max = number Following is the syntax for returning the Range max property − var maxValue = rangeObject.max Here, number represents the maximum slider control value, ...
Read MoreHTML Screen availWidth Property
The HTML Screen availWidth property returns the available width of the user's screen in pixels, excluding browser interface elements like toolbars, scrollbars, and other UI components. This property is part of the Screen object in JavaScript and provides the actual usable screen width for web content. Syntax Following is the syntax for the availWidth property − screen.availWidth Return Value The screen.availWidth property returns an integer representing the available screen width in pixels. This value is always less than or equal to the total screen width (screen.width) as it excludes the space occupied by ...
Read MoreHTML Screen height Property
The screen.height property in JavaScript returns the total height of the user's screen in pixels. This property is part of the Screen interface and provides information about the physical dimensions of the user's display device, including any system toolbars or taskbars. Syntax Following is the syntax for the screen height property − screen.height Return Value The screen.height property returns an integer value representing the total height of the screen in pixels. This includes the entire screen area, not just the browser window. Example Following example demonstrates how to get and display ...
Read MoreHow to Toggle the Buttons and Submit A Form At The Same Time?
Every HTML form has an action attribute that specifies where form data should be sent when submitted. When working with multiple buttons in a form, you can control their behavior to toggle button states and submit the form simultaneously using JavaScript and different button types. HTML Buttons A clickable button is defined by the tag. You can insert text and other HTML elements like , , , , and inside a element, which is not possible with . Syntax Following is the basic syntax for HTML − ...
Read MoreHTML Window pageXOffset Property
The HTML Window pageXOffset property returns the number of pixels the current document has been scrolled horizontally from the upper-left corner of the window. This read-only property is useful for tracking horizontal scroll position and implementing scroll-based functionality. Syntax Following is the syntax for the pageXOffset property − window.pageXOffset Return Value The property returns a number representing the horizontal scroll distance in pixels. If the document has not been scrolled horizontally, it returns 0. Example − Basic Usage Following example demonstrates how to use the pageXOffset property to track horizontal scrolling ...
Read MoreHow to Convert a HTML Table into Excel Spreadsheet using jQuery?
Converting an HTML table to an Excel spreadsheet can be accomplished using the table2excel jQuery plugin. This lightweight plugin provides a simple solution for exporting table data to Excel format with minimal setup. The plugin works by targeting HTML elements and converting their content into downloadable Excel files. Syntax Following is the basic syntax for the table2excel plugin − $(selector).table2excel({ filename: "filename", fileext: ".xls" }); Where − selector − Any HTML table element, class, or ID that identifies the table to export. filename − The ...
Read MoreHow to simulate pressing enter in html text input with Selenium?
We can simulate pressing enter in HTML text input fields using Selenium WebDriver. The sendKeys method allows us to send key presses to web elements, including the Enter key. This is commonly used for form submissions, search operations, or triggering input validation. Syntax Following is the syntax to simulate pressing Enter using Selenium − element.sendKeys(Keys.ENTER); Alternatively, you can use Keys.RETURN which produces the same result − element.sendKeys(Keys.RETURN); Both Keys.ENTER and Keys.RETURN represent the same key press action and can be used interchangeably in Selenium automation. Required Import To ...
Read MoreHTML DOM Input Range min property
The HTML DOM Input Range min property is used for setting or returning the min attribute value for the range slider control. This attribute indicates the minimum value of the slider control and is often used with the max property to create a range of values between which the slider can move. Syntax Following is the syntax for setting the Range min property − rangeObject.min = number Following is the syntax for getting the Range min property − var minValue = rangeObject.min Parameters The min property accepts the following ...
Read MoreHTML Screen colorDepth Property
The HTML Screen colorDepth property returns the bit depth of the color palette for displaying images in bits per pixel. This property indicates how many bits are used to represent the color of each pixel on the screen, which determines the maximum number of colors that can be displayed simultaneously. The colorDepth property is part of the Screen object and provides information about the display capabilities of the user's monitor. Common values include 8, 16, 24, and 32 bits per pixel. Syntax Following is the syntax for the colorDepth property − screen.colorDepth Return ...
Read MoreHTML Window moveBy() Method
The HTML Window moveBy() method moves a window relative to its current position by a specified number of pixels. This method is commonly used in JavaScript to programmatically reposition popup windows or child windows on the screen. Syntax Following is the syntax for the moveBy() method − window.moveBy(x, y) Parameters The moveBy() method accepts two parameters − x − The number of pixels to move the window horizontally. Positive values move right, negative values move left. y − The number of pixels to move the window vertically. Positive values move down, ...
Read More