- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Saurabh Anand has Published 24 Articles
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
15K+ Views
Tracking button clicks is a common task in JavaScript and can be achieved by using the addEventListener() method. By adding an event handler method to the button element and incrementing a variable each time the button is pressed, we can simply keep track of button clicks. We can quickly show ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
2K+ Views
Introduction Before understanding the counting of the lines in a DOM, let's first understand what DOM is? So, DOM is like an API for HTML and XML documents. This logic is enough to understand that DOM is an important concept for web developers. The DOM gives a programming interface ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
7K+ Views
We can use jQuery html() method to copy the content of a div into another div. In jQuery, many other methods, such as clone(), append() & appendTo(), etc., can be used to copy the content. jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
22K+ Views
Timezone handling is an essential component of every web application. The time that is recorded in the backend is usually in UTC format. When it is displayed to the user, however, it must be converted to the user's local time. This is possible with JavaScript. We'll look at how to ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
12K+ Views
We can convert a string into a float using the parseFloat() function or the Number() constructor in JavaScript. Other approaches such as using + operator, eval() and parseInt() methods, can also be used for this. Converting strings to floating point numbers is a typical operation in JavaScript. This is required ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
4K+ Views
We can use replace() method to convert special characters to HTML in JavaScript. This method can also be applied with a map. There are many other methods that can be used for this task. We will discuss these methods in detail in this article. We will start our discussion with ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
347 Views
ES2015, also known as ECMAScript 6, is the latest version of JavaScript that was officially released in June 2015. It brings a number of new features and improvements to the language, making it easier to write more efficient and maintainable code. In this tutorial, we will take a look at ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
1K+ Views
JavaScript Events, Are you familiar with them? Any action that occurs when we interact with a website is a JavaScript event. These actions include hitting a key on the keyboard, selecting an option in a select box, moving the mouse cursor, and so on. A JavaScript event handler is a ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
795 Views
Events in JavaScript are the actions performed by the browser or the user. Some of the examples of events are − On webpage load On keypress On hover On click, etc. When javascript code is embedded in HTML runs, js reacts to these events and allows the code ... Read More
![Saurabh Anand](https://www.tutorialspoint.com/assets/profiles/587255/profile/60_1915907-1674103562.jpg)
Saurabh Anand
162 Views
JavaScript is a powerful and versatile programming language that is widely used for both front-end and back-end development. One of the features that makes JavaScript so powerful is its extensive standard library, which includes many built-in methods for working with strings, arrays, and other data types. One such method is ... Read More