HTML Articles

Page 23 of 151

HTML onmousemove Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 213 Views

The HTML onmousemove event attribute is triggered when the user moves the mouse pointer over an HTML element. This event fires continuously while the mouse is in motion over the target element, making it useful for tracking cursor movement and creating interactive hover effects. Syntax Following is the syntax for the onmousemove event attribute − Where script is the JavaScript code to execute when the mouse moves over the element. Parameters The onmousemove event attribute accepts the following parameter − script − JavaScript code or function call to execute ...

Read More

HTML onmouseout Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 186 Views

The HTML onmouseout event attribute is triggered when the mouse pointer moves out of an HTML element. This event is commonly used to reset styles, hide tooltips, or perform cleanup actions when users move their cursor away from an element. Syntax Following is the syntax for the onmouseout event attribute − Content Where script is the JavaScript code to execute when the mouse leaves the element. Parameters script − JavaScript code or function call that executes when the mouse pointer moves out of the element. Example − Circle Color ...

Read More

HTML onmouseover Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 647 Views

The HTML onmouseover event attribute is triggered when the mouse pointer moves over an HTML element. This event is commonly used to create interactive effects, show tooltips, highlight elements, or change visual appearance when users hover over content. Syntax Following is the syntax for the onmouseover event attribute − Content Where script is the JavaScript code to execute when the mouse enters the element area. Basic Example Following example demonstrates a simple onmouseover event that changes text color when hovering − HTML onmouseover Event ...

Read More

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 232 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 272 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 221 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
Showing 221–230 of 1,509 articles
« Prev 1 21 22 23 24 25 151 Next »
Advertisements