Shubham Vora has Published 962 Articles

How to change button label in alert box using JavaScript?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 13:46:21

4K+ Views

In this tutorial, we will learn to change the button label in the alert box using JavaScript. The alert box is one kind of popup box that is useful to show some important information to the user. We can pop up the alert box using JavaScript's alert() method. The default ... Read More

How to change string to be displayed as a superscript using JavaScript?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 11:40:17

2K+ Views

In this tutorial, we are going to learn to change strings to be displayed as a superscript using JavaScript. As the name suggests, the superscript string is displayed at the half-height of the normal string. Also, characters of the superscript string are smaller than the normal string characters.There are a ... Read More

How to change string to be displayed as a subscript using JavaScript?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 11:32:20

2K+ Views

In this tutorial, we will learn to change the string displayed as a subscript using JavaScript. The meaning of the subscript string is a string that displays right after the string with a small letter and hangs below. For example, In the Astart, ‘start’ is the subscript string shown in ... Read More

How to change button label in confirm box using JavaScript?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 11:29:10

11K+ Views

In this tutorial, we will learn to change the button label in the confirm box using JavaScript. The confirm box is useful for taking the confirmation from the user. For example, when you try to delete something from your account on some websites, they show you a popup box containing ... Read More

How to center a popup window on screen using JavaScript?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 10:01:33

9K+ Views

In this tutorial, we will learn to center a popup window on the screen using JavaScript. Programmers often need to open a new popup window to show another webpage without redirecting the user to the other webpage. In this situation, developers use the window.open() method to open the new browser ... Read More

How Is Infinity converted to String in JavaScript?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 09:52:54

428 Views

This tutorial will teach us how to convert the infinity to string in JavaScript. The Infinity is the reserved keyword in JavaScript and demonstrates the concept of the infinity number of mathematics. It is a global variable, and we can access it anywhere in our program. Here, we have two ... Read More

Do you think JavaScript Functions are Object Methods?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 09:47:35

121 Views

Compared to other languages, JavaScript works differently, especially if you get confused between function and methods. In this tutorial, we will learn whether JavaScript functions are object methods. The example written in this tutorial gives you a better idea about the differences and which one is more convenient for us. ... Read More

How do you convert a JavaScript date to UTC?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 09:41:10

12K+ Views

In this tutorial, we will learn to convert the date to UTC. The full form of the UTC is the universal time coordinate, and it is a standard time that is considerable in every country. Let’s understand the need to convert the date to UTC by example. You have created ... Read More

How can I stop a video with JavaScript in Youtube?

Shubham Vora

Shubham Vora

Updated on 02-Aug-2022 09:20:06

8K+ Views

In this tutorial, we will learn to stop a video with JavaScript on YouTube. Using the ‘iframe’ HTML element, we can easily embed the YouTube videos on our application. It is a video player in HTML 5 and has many attributes that users can use according to their needs. In ... Read More

How do you reverse a string in place in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Jul-2022 07:37:53

2K+ Views

In this tutorial, we will learn to reverse a string in place in JavaScript. How to reverse a string is one of the most popular questions asked in the interview of freshers. It’s an easy task but the interviewer can be tricky and make the same question difficult for you. ... Read More

Advertisements