Front End Technology Articles

Page 21 of 652

HTML returnValue Event Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 165 Views

The HTML returnValue event property is a legacy property that was used to control whether an event's default action should be prevented. While it has been deprecated in favor of the preventDefault() method, it is still supported in some browsers for backward compatibility. Syntax Following is the syntax for getting the returnValue property − event.returnValue Following is the syntax for setting the returnValue property − event.returnValue = boolean Parameters The returnValue property accepts a boolean value − true − Allows the event's default action to proceed (default ...

Read More

HTML ondblclick Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 236 Views

The HTML ondblclick attribute is an event handler that triggers when a user double-clicks on an HTML element. This attribute allows you to execute JavaScript code in response to the double-click mouse event. Syntax Following is the syntax for using the ondblclick attribute − Content Parameters script − The JavaScript code to execute when the element is double-clicked. This can be a function call or inline JavaScript statements. Example − Button Double-Click Following example demonstrates the ondblclick event attribute with a button element − ...

Read More

HTML DOM Variable Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 273 Views

The HTML DOM Variable Object represents the element in the DOM tree. The element is used to define variables in mathematical expressions, programming code examples, or technical documentation. When accessed through JavaScript, it becomes a DOM object with properties and methods for manipulation. Syntax Following is the syntax to create a var object using JavaScript − document.createElement("VAR"); Following is the syntax for the HTML element − variable_name Creating a Variable Object The var object can be created dynamically using JavaScript's createElement() method. Once created, you can ...

Read More

HTML DOM KeyboardEvent altKey Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 152 Views

The HTML DOM KeyboardEvent altKey property returns a boolean value indicating whether the ALT key was pressed when a keyboard event was triggered. This property is particularly useful for detecting keyboard shortcuts and modifier key combinations in web applications. Syntax Following is the syntax for accessing the altKey property − event.altKey Return Value The altKey property returns a boolean value − true − If the ALT key was pressed when the event occurred false − If the ALT key was not pressed when the event occurred Example − Basic ...

Read More

HTML5 Mathematical operators

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 2K+ Views

HTML5 provides a comprehensive set of mathematical operators and symbols that can be displayed in web pages using HTML entities. These entities allow you to represent mathematical notation, Greek letters, and technical symbols that are not available on standard keyboards. Syntax Mathematical operators can be inserted using three different formats − Named Entity: &entityName; Decimal Entity: &#decimalNumber; Hexadecimal Entity: &#xhexNumber; Where entityName is the predefined name, decimalNumber is the decimal Unicode code point, and hexNumber is the hexadecimal Unicode code point. Common Mathematical Operators ...

Read More

HTML Window outerWidth Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 224 Views

The HTML Window outerWidth property returns the total width of the browser window, including all interface elements like scrollbars, toolbars, and window borders. This property is useful for responsive design and layout calculations that need to account for the complete browser window dimensions. Syntax Following is the syntax for the outerWidth property − window.outerWidth Return Value The outerWidth property returns an integer value representing the total width of the browser window in pixels, including: The content area Vertical scrollbars (if present) Window borders Any browser interface elements ...

Read More

HTML Window screenLeft Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 252 Views

The HTML Window screenLeft property returns the horizontal distance in pixels from the left edge of the user's screen to the left edge of the browser window. This property is useful for determining window positioning and creating multi-window applications. Note: The screenLeft property is not supported in Firefox. Firefox uses screenX instead for the same functionality. Syntax Following is the syntax for the screenLeft property − window.screenLeft Return Value The screenLeft property returns a number representing the horizontal distance in pixels from the left edge of the screen to the left edge ...

Read More

HTML Window moveBy() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 223 Views

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

HTML Window moveTo() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 311 Views

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 More

HTML Window resizeBy() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 186 Views

The HTML Window resizeBy() method resizes a window by a specified amount relative to its current dimensions. This method adjusts the window's width and height by adding the provided pixel values to the current size. Syntax Following is the syntax for the Window resizeBy() method − window.resizeBy(width, height) Parameters The resizeBy() method accepts the following parameters − width − An integer representing the number of pixels to resize the window width. Positive values increase the width, negative values decrease it. height − An integer representing the number of pixels to resize ...

Read More
Showing 201–210 of 6,519 articles
« Prev 1 19 20 21 22 23 652 Next »
Advertisements