Vrundesha Joshi has Published 345 Articles

Set the color of the rule between columns with CSS

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 13:25:20

75 Views

To set the color between columns, use the column-rule-color property. You can try to run the following code to implement the column-rule-color property.With that, we will also set the style of the column rule:ExampleLive Demo                    .demo {       ... Read More

Execute a script when the playback position of the media has changed in HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 08:52:26

45 Views

The ontimeupdate attribute event triggers when the playing position of the media, for example, video, is changed. It can be fast forward, or backward in a video or audio.ExampleYou can try to run the following code implement ontimeupdate attribute −           Play       ... Read More

Execute a script when media data is loaded in HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 08:28:09

85 Views

Use the onloaddata event to execute a script when media data is loaded. You can try to run the following code to implement onloaddata event −ExampleThe following code generates an alert box when the video gets loaded −                                        Your browser does not support the video element.                      function display() {             alert("Loaded!");          }          

How to add background music in HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 07:22:33

10K+ Views

The HTML tag is used to play music in the background. This tag is for Internet Explorer only.ExampleYou can try to run the following code to add background music in HTML −           HTML bgsound Tag               ... Read More

Usage of transform property with CSS

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 07:14:13

97 Views

The transform property in CSS is used to apply a 2D or 3D transformation to an element. You can try to run the following code to implement the transform property −ExampleLive Demo                    div {             width: 200px;             height: 100px;             background-color: gray;             transform: rotate(10deg);          }                     Rotation       Demo    

Which CSS property is to be used to set the speed curve of the Animation?

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 05:52:34

71 Views

Use the animation-timing-function to set the speed curve of the Animation. You can try to run the following code to set ease and ease-in animation effect:ExampleLive Demo                    div {             width: 150px;     ... Read More

Specify how nested elements are rendered in 3D space

Vrundesha Joshi

Vrundesha Joshi

Updated on 23-Jun-2020 16:00:09

87 Views

To specify how nested elements are rendered in 3D space, use the transform-style property in CSS.You can try to run the following code to implement the transform-style property:ExampleLive Demo                    .demo1 {             width: 300px; ... Read More

Is their JavaScript “not in” operator for checking object properties?

Vrundesha Joshi

Vrundesha Joshi

Updated on 23-Jun-2020 11:59:16

843 Views

To get only the else part, just negate, using ! the operator in JavaScript. You can try to run the following code to achieve this −var arr = {}; if (!(id in arr)) { } else { }In addition, if you want the existence of a property in an object, ... Read More

When to use anonymous JavaScript functions?

Vrundesha Joshi

Vrundesha Joshi

Updated on 23-Jun-2020 06:58:06

180 Views

The code while using anonymous functions is more readable when handlers are to be defined inside the calling code. Anonymous functions are declared inline. Normally, inline functions are better since they can access variables in the parent scopes.It allows for creating a function without any names identifier. It can be ... Read More

How does Exceptions Handling work in JavaScript?

Vrundesha Joshi

Vrundesha Joshi

Updated on 22-Jun-2020 14:38:52

103 Views

JavaScript uses try…catch…finally to handle exceptions. The latest versions of JavaScript added exception-handling capabilities. JavaScript implements the try...catch...finally construct as well as the throw operator to handle exceptions.You can catch programmer-generated and runtime exceptions, but you cannot catch JavaScript syntax errors.SyntaxHere is the try...catch...finally block syntax −     ExampleYou can ... Read More

Advertisements