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 251 of 840
HTML 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 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 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 MoreHTML DOM Input Range name property
The HTML DOM Input Range name property is used for setting or returning the name attribute of an input range field. The name attribute helps in identifying the form data after it has been submitted to the server. JavaScript can also use the name attribute to refer to form elements for manipulation later on. Syntax Following is the syntax for setting the name property − rangeObject.name = name Following is the syntax for getting the name property − rangeObject.name Parameters name − A string specifying the name attribute value ...
Read MoreHTML Screen pixelDepth Property
The HTML Screen pixelDepth property returns the color resolution (bit depth) of the visitor's screen in bits per pixel. This property indicates how many bits are used to represent the color of each pixel, which determines the total number of colors the screen can display. The pixel depth directly affects color quality − higher values mean more colors can be displayed. Common values include 8 bits (256 colors), 16 bits (65, 536 colors), 24 bits (16.7 million colors), and 32 bits (16.7 million colors with transparency). Syntax Following is the syntax for accessing the pixelDepth property − ...
Read MoreHTML Window moveTo() Method
The HTML Window moveTo() method moves a window to the specified coordinates on the screen. It repositions the entire window by setting its left and top edges to the given pixel values relative to the screen. This method is commonly used to programmatically position popup windows, dialogs, or new browser windows at specific locations on the user's screen. Syntax Following is the syntax for the moveTo() method − window.moveTo(x, y) Parameters The moveTo() method accepts the following parameters − x − An integer specifying the horizontal coordinate (in pixels) where ...
Read MoreHTML DOM Video autoplay Property
The HTML DOM Video autoplay property sets or returns a boolean value that determines whether the video element will automatically start playing when the page loads. This property corresponds to the HTML autoplay attribute on the video element. Syntax Following is the syntax for getting the autoplay property value − mediaObject.autoplay Following is the syntax for setting the autoplay property − mediaObject.autoplay = booleanValue Parameters The booleanValue parameter can be one of the following − Value Description true The video will ...
Read More