Defer and Async attributes in JavaScript, they both are boolean attributes these attributes are used with script tags to load the external JavaScript file efficiently and smoothly into the webpages. Because today in modern websites the load time of JavaScript is longer than html files and their processing is also […]
JavaScript Browser Detection
You might have seen many websites detecting your browser and displaying the details of your browser on the web pages or checking the version of the browser to tell you to upgrade the browser or sometimes the websites might only run on a certain version or higher. A common example […]
Session Storage in JavaScript
What is sessionStorage? sessionStorage is an object for the current session much like the localStorage, sessionStorage can also store data in the memory of the browser, but this data cannot persist over multiple sessions, it gets deleted after a page session is ended. Whenever a document is loaded in a […]
Local storage in JavaScript
What is localStorage in javascript? The local storage is the storage location provided by the browser and that allows us to store key/value pairs in a web browser to use at a later stage of time. The localStorage object stores the data without any expiration date, i.e. data stored in […]
Reloading Webpage Data Using AJAX
What is AJAX? AJAX stands for asynchronous javascript and xml. It is a technique where we can request data from the server without reloading the entire page, it is not a programming language, it is a combination of different technologies listed below Language used in ajax Html Css Javascript Php […]
JavaScript Map(), Reduce() array of objects
Functional programming techniques can help in making code easier to understand at a glance and read and test, Functional programming has been making quite a splash in the development world. Functional programming has its special lists of list operations they are exactly like array of things. The list items are […]
How to define and assign values to JavaScript arrays.
Array in JavaScript Arrays are variables that can store ordered collection of values in them which can be of different data types, with each having a numeric position known as an index. JavaScript follows a zero-based indexing scheme, meaning the index of the 1st element will start from 0, 2nd […]
[JS] How to remove particular element in JavaScript Array?
JavaScript to Remove Element in Array JavaScript arrays are variables that can store ordered collection of values in them which can be of different datatypes, with each having a numeric position known as indexes. We can add and remove array elements in several ways. So, how do we remove a […]
[WordPress] Display HTML Tags inside Pre
Display HTML Code in WordPress Post In WordPress posts if we write any HTML codes in Text editor, the code will not be displayed. Instead of code, WordPress, sends the HTML code as it is. The web browser compiles the code to display its output. Hence the code will not […]
[JavaScript] Code To Validate Email Address – in HTML Form
HTML Form – Email Validation with JavaScript Email validation is very important in HTML forms. Here we have discussed how to validate email addresses using JavaScript. Parts of an email address An email address is a unique identifier of an email account bound to a domain server. An email address […]