Arjun Thakur has Published 1025 Articles

HTML DOM Address Object

Arjun Thakur

Arjun Thakur

Updated on 12-Jun-2020 08:28:16

204 Views

Use the address object to represent the element. Let us see an example to create −Example Live Demo Heading Two Create address element Display    function display() {       var a = document.createElement("Address");       var node = document.createTextNode("ABC Inc, P 120, Ontario, ... Read More

HTML canvas shadowColor Property

Arjun Thakur

Arjun Thakur

Updated on 12-Jun-2020 08:00:20

149 Views

The shadowColor property of the HTML canvas is used to set the color for shadow. The default value is #000000.Following is the syntax −ctx.shadowColor=color;Above, set the color for shadow.Let us now see an example to implement the shadowColor property of canvas −Example Live Demo    var c = document.getElementById("newCanvas"); ... Read More

Change Background color of a web page using onmouseover property

Arjun Thakur

Arjun Thakur

Updated on 12-Jun-2020 07:20:30

7K+ Views

The onmouseover property allows you set a script when the mouse pointer is moved onto an element. To change the background color, use the HTML DOM backgroundColor property.Let us see an example to implement the onmouseover property and change the background color −Example Live Demo Heading Two    Hover ... Read More

HTML canvas fillStyle Property

Arjun Thakur

Arjun Thakur

Updated on 12-Jun-2020 07:04:44

527 Views

The fillStyle() property of the HTML canvas is used to set the color or gradient or pattern for the drawing. The default is #000000. The element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of ... Read More

HTML canvas clearRect() Method

Arjun Thakur

Arjun Thakur

Updated on 12-Jun-2020 06:57:42

1K+ Views

The clearRect() method in HTML canvas is used to clear the pixels in a given rectangle. The element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height and width respectively.Following is ... Read More

HTML