Found 8591 Articles for Front End Technology

Explain clearTimeout() function in Node.js

Prabhdeep Singh
Updated on 17-Mar-2023 13:37:29

463 Views

There is a timer module in node.js that is used to schedule timers and carry out specific functions at a later time. In Node.js the JavaScript function clearTimeout() is used to halt the execution of the setTimeout() function by using the timeoutID returned by a specific setTimeout() function call. This function does nothing if the timeoutID didn't match for any prior calls or if an invalid value is given. The setTimeout() JavaScript function executes the specified code after the user-specified amount of time or delay, and it returns an ID, which is a positive integer commonly referred to as the ... Read More

Explain Class Methods in Coffeescript

Prabhdeep Singh
Updated on 04-Apr-2023 11:51:39

148 Views

To understand the class methods in CoffeeScript first we need to understand what it is CoffeeScript. CoffeeScript is a lightweight programming language, and this language compiles in JavaScript and is also inspired by languages like JavaScript, python, ruby, Haskell, etc. Further, we will discuss it in detail after that we are going to discuss class methods in CoffeeScript with its syntax of it an example with a full explanation and in the end, we conclude it. Introduction of CoffeeScript As we discussed above it is a lightweight programming language that compiles in JavaScript. It is basically an effort to make ... Read More

Explain Chosen and Select2 with Examples

Prabhdeep Singh
Updated on 17-Mar-2023 13:28:21

947 Views

There are two jQuery plugins that can we use to style the select boxes that are Select2 and Chosen. Both the plugins Select2 and Chosen are improving the look of the selected boxes and enhancing the behavior of the boxes which leads to the make them user-friendly. Also, both of these plugins can be used for multiple selected boxes as well as single selected boxes. Chosen JavaScript plugin that creates the select boxes user-friendly that is chosen. Chosen is available in both the prototype and JQuery versions. Features of the Chosen User-friendly Your users won't have to slog through a ... Read More

Explain Built-in Events in Backbone.js

Prabhdeep Singh
Updated on 17-Mar-2023 13:27:27

317 Views

There are various events that are present in Backbone.js and these events are called built-in Events. As the name suggests programmers and users already define built-in events and can directly use them. Also as per the requirements, a user can create his/her own event which doesn’t comes under the built-in Events. A remarkable quality that an event provides a user is that it adds the event listeners to the related selector, custom selectors, el. Also if none of the selection is provided then both the related selector and el event listeners are attached. Backbone.js Introduction Backbone.js is a toolkit or ... Read More

Explain all Console Object in HTML

Prabhdeep Singh
Updated on 17-Mar-2023 13:24:52

264 Views

A console is an object in the JavaScript programming language that is used for the purpose of debugging or logging results. It is a tool or web tool which may be used by developers to debug their code. With the help of the console, information can be displayed about the code that could be values of the variables, any result of a particular expression, or the return value of a function call. Moreover, it can be used to display errors and warnings. The console is available in every scope since it is a global variable. In the browser window, it ... Read More

How to change the element id using jQuery?

Gungi Mahesh
Updated on 17-Mar-2023 13:19:19

7K+ Views

jQuery is one of the JavaScript libraries which is fast, small, and feature-rich. It is used to perform event handling, animation, etc. It is a combination of versatility and extensibility. jQuery is used to simplify the AJAX call and DOM manipulation. Using jQuery, we can make a webpage interactive by responding to a mouse click event. jQuery includes the features like Events, Effects, animations, Ajax, JSON parsing, Cross-browser support, and extensibility. It distributes as a single JavaScript file which defines all of its interfaces like DOM, Events, and the Ajax functions. jQuery consists of two functions, one function is static ... Read More

How to change the href value of <a> tag after clicking on button using JavaScript?

Gungi Mahesh
Updated on 17-Mar-2023 13:17:17

10K+ Views

The href attribute specifies the link’s destination, which can be a URL or an anchor point within the same document. Changing the attribute value of href which allows us to dynamically update the destination of the link, which can be useful in a variety of situations. Generally, the tag is used to create a hyperlink in HTML. stands for anchor tag, and it is used to link the other web pages or to specify the exact locations within the same page. On the other side, the href attribute is used to specify the link’s destination, which can be ... Read More

How to change the font-weight of a text using JavaScript?

Gungi Mahesh
Updated on 17-Mar-2023 13:12:46

1K+ Views

Using JavaScript is one of the most famous ways to change the font-weight of any text on your webpage. We can build interactive applications using JavaScript with HTML elements. Font weight refers to the boldness or thinness of the characters. In this article, we will see how we can change the font-weight of a text using JavaScript. Using the Style fontWeight Property Let us see how can we change the font weight of a single element, such as a paragraph or a heading. To do this, we will use the ‘style.fontWeight’ property of the element. This property is an object ... Read More

How to change cursor to waiting state in JavaScript/jQuery?

Gungi Mahesh
Updated on 17-Mar-2023 13:09:46

1K+ Views

We can use onmouseover, onmouseout events to set or change the cursor into the state of waiting. In JavaScript, we have different types of mouse events which performs the different functionalities on mouse. Let us see some of the mouse events. onmousedown − These event is occurred when a mouse button is pressed over an HTML element onmouseenter − It occurs when a pointer is moved out of an element onmousemove − These event is occurred when the pointer is moving over an HTML element onmouseout − It occurs when the pointer leaves the element onmouseover − When the ... Read More

How to change font style using drop-down list in JavaScript?

Gungi Mahesh
Updated on 17-Mar-2023 13:03:11

6K+ Views

We can use the style fontFamily property to change font style using drop-down list in JavaScript. To make the font change effective using the drop-down list, we can use onchange event when an option is selected in the drop down list. Before we move further, let us know in detail about the drop-down list. A drop-down list is a switchable menu which enables the user to select the one item from a various option. These options can be defined using the HTML code, which are connected to a function. These functions are triggered and starts operating whenever you click or ... Read More

Advertisements