Web Development Articles

Page 21 of 801

HTML onmouseup Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML onmouseup event attribute is triggered when a mouse button is released from an HTML element. This event occurs after the mouse button has been pressed down and then released, making it useful for implementing interactive click behaviors and drag-and-drop functionality. Syntax Following is the syntax for the onmouseup event attribute − Content Where script is the JavaScript code to execute when the mouse button is released over the element. How onmouseup Works The onmouseup event is part of the mouse event sequence. When you interact with an element using a ...

Read More

HTML onmousedown Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 224 Views

The HTML onmousedown event attribute is triggered when a mouse button is pressed down on an HTML element. This event fires immediately when the user presses any mouse button (left, right, or middle) while the cursor is over the element, before the button is released. Syntax Following is the syntax for the onmousedown event attribute − Where script is the JavaScript code to execute when the mouse button is pressed down on the element. Parameters The onmousedown event attribute accepts the following parameter − script − JavaScript code or ...

Read More

HTML onmousemove Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 216 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 191 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 648 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 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
Showing 201–210 of 8,010 articles
« Prev 1 19 20 21 22 23 801 Next »
Advertisements