Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Manisha Patil
Page 2 of 4
How to create editable div using JavaScript?
You will learn in this post how to use HTML, CSS, and JavaScript to develop an editable div. Whenever you click on an editable div, your browser will automatically create an editable text area where you can make changes to or add new text. The text you've edited will appear as a constant text whenever anyone click elsewhere on your browser after you've finished. Necessary requirements − The concepts of HTML, CSS, and JavaScript should be familiar to you. Developing structure − Make two files: one for JavaScript and the other for HTML. Execute the command that follows to create ...
Read MoreHow to change the color of error message in jquery validation in JavaScript?
Let's learn how to modify the colour of the error message in JavaScript while using jQuery form validation in this tutorial. Form validation is the process of verifying the pertinent data that the user has submitted in the input field. Here, we'll demonstrate how to use jQuery to validate a straightforward form with a login, password, and confirmed password. Necessary requirements − The fundamentals of HTML, CSS, JavaScript, and jQuery must be familiar to you. Method To start, you must create an index.html file that contains an HTML form containing input fields for the user name, email address, password, ...
Read MoreHow do I shift from jQuery to core JavaScript?
An object-oriented programming language called JavaScript was created to make developing websites more appealing and simple. The majority of the time, JavaScript is used to build dynamic, responsive elements for websites, improving customer experience. The most widely used lightweight, compiled, and interpreted programming language is JavaScript. It is additionally known as web page scripting language. It can be applied to both client-side and server-side programming. The interactions between an HTML/CSS document, or more properly the Document Object Model (DOM), and JavaScript are made simpler by the open-source JavaScript library known as jQuery. By defining the keywords, it makes navigating and ...
Read MoreHow can JavaScript code be hidden from old browsers that do not support JavaScript?
The JavaScript script tag is occasionally not understood by older browsers. If not, they will simply disregard it and display your script as though it were a section of the (X)HTML document's body. It's a smart option to use comments to hide scripts from outdated browsers to prevent it from happening. JavaScript is now supported by all modern browsers; however, earlier browsers did not. In this article, we'll learn how to prevent JavaScript code from executing in older browsers. As some of your viewers will be seeing the site on a phone while others are using a large desktop screen, ...
Read MoreExplain Asynchronous vs Deferred JavaScript
In most cases, whenever we use a script tag to load any JavaScript code, the browser pauses HTML processing when it comes across the script tag and begins downloading the JavaScript file first. Until the browser has finished downloading and running the script, the HTML elements script tag will not be activated. The browser waits for the script to download, execute, and then process before processing the rest of the page. The script has a potential to be bigger in newer browsers than the HTML file, which increases the downloading size and processing time. By limiting the user's ability to ...
Read MoreDifference between document load and DOMContentLoaded events in JavaScript
To verify whether a webpage has fully loaded, use the DOMContentLoaded and load events. However, there are some elements that influence people's choice for one over the other. Let's have a look at both of them and see how they function. The basic HTML page is loaded and its parsing is completed when the DOMContentLoaded event is fired. Stylesheets, sub-frames, and other add-ons like photos and pictures are not delayed by this event until they have finished loading. When a page has loaded completely, a different event called load should be invoked. When DOMContentLoaded is more appropriate, it is a ...
Read MoreDesign Smiley Face Eyes that follow Mouse Cursor using CSS and JS
A face that is animated using JavaScript, HTML, and CSS. The face will move in the same direction as the cursor. This is one of the basic CSS and JavaScript effects. It is among the best examples for learning the idea of pseudo-elements for a newcomer. When it comes to arranging and structuring website pages, CSS is far more useful and essential. A website page can now have more capabilities and collaborations because of JavaScript's continued development. CSS is supported by every software, however JavaScript is only supported by functional programmes. You can use JavaScript to create responses for particular ...
Read MoreBuild a Site Bookmark App with JavaScript by using Local Storage
In this tutorial, we'll use JavaScript, CSS, and HTML to build a Site Bookmark app. Through the use of our browser's local storage, we will be able to store links to our favourite websites without having to use any databases. We can store data client-side thanks to Local Storage, also referred to as the web storage API. Strings are used to represent the data in local storage, which is persistent even when the session is closed. Data can only be deleted manually by the user. Since all of the data is stored on the client side, there is a clear ...
Read MoreWhy is using “for…in” loop in JavaScript array iteration a bad idea?
The ability to execute a collection of instructions or functions repeatedly while a certain condition holds true is known as looping in programming languages. The for-in statement is used to iterate through the properties of an object. This sentence will move up the prototype chain and display all inherited properties, which is usually undesirable. When it comes to iterating through array elements, there are few reasons why you shouldn't use for..in: For example, if someone changes Array.prototype, which is absolutely bad practise in code that is meant to operate well with the other scripts, for..in will cycle over all ...
Read MoreWhat is JavaScript’s highest integer value that a Number can go to without losing precision?
The value of the MAX SAFE INTEGER constant is 9007199254740991 (9, 007, 199, 254, 740, 991 or nine quadrillion). JavaScript only properly represents integers between -(253 - 1) and 253 - 1, which is the rationale for that number. JavaScript employs double-precision floating-point format numbers as specified in IEEE 754. Number and BigInt are the two number types available in JavaScript. Number, the most popular type of number, is a 64-bit floating point IEEE 754 number. Number.MAX SAFE INTEGER, which is the following, has the largest precise integral value of this type − 253-1, or +/- 9, 007, 199, ...
Read More