Add Prefix or Suffix to Cell Values in Google Sheets

Pradeep Kumar
Updated on 06-Dec-2022 12:35:50

12K+ Views

Adding prefix or suffix to a set of cell values in Excel is a very-consuming process when we do it manually, however you can complete such a task very easily just by using the simple formula. This article will help you understand how you can add prefix and suffix to cell values. How to Add Prefix into Cell Values? Let see a simple process to add prefix into cell values. Step 1: Let us consider we have an excel sheet where it contains the list of words as shown in below image To add the prefix, use the formula ... Read More

Store Objects in HTML5 LocalStorage

Shubham Vora
Updated on 06-Dec-2022 12:34:00

1K+ Views

In this tutorial, we will discuss how to store objects in HTML5 localStorage. We can access the Storage object and store data in it thanks to the interface window's localStorage property. There is no time limit on it. As a result, the data that is stored in it will remain until it is explicitly deleted. The localStorage data can't be removed by closing the browser. To store JavaScript objects in localStorage, we will investigate how to stringify and parse them into JSON strings and then how to store them in localStorage. Using the setItem() Method This setItem() method is used ... Read More

Access the Correct 'this' Inside a Callback

Shubham Vora
Updated on 06-Dec-2022 12:19:17

565 Views

In this tutorial, we will learn about how to Access the Correct “this” inside a callback. “this” keyword Each function contains a keyword called this, also known as “the context, ” whose value is determined by how the function was called and not by how, when, or where it was defined. Unlike other variables, it is unaffected by lexical scopes. Compared to other languages, JavaScript acts a little differently when a function’s “this” keyword is used. Between strict mode and non-strict mode, there are several further changes. How a function is called most often determines the value of “this” (runtime ... Read More

How Access-Control-Allow-Origin Header Works

Shubham Vora
Updated on 06-Dec-2022 12:14:30

4K+ Views

In this tutorial, we will learn how access control allows the origin header to work. Access-Control-Allow- Origin is a header for CORS. With CORS or cross-origin resource sharing, browsers can permit a website hosted at origin A to request resources from origin B. Origin is a mix of port, hostname, and scheme, such as http://tutorialspoint.example.com:5000/, rather than just the hostname. Here is an illustration of how this is put into practice − I want to obtain resources from origin B, which is http://yoursite.com, and origin A:https://www.tutorialspoint.com. ... Read More

Difference Between Absolute URL and Relative URL

Shubham Vora
Updated on 06-Dec-2022 12:03:04

23K+ Views

In this tutorial, we will learn the difference between an absolute URL and a relative URL. What is a URL? A Uniform Resource Locator (URL) is an address that indicates the location of a specific file or resource on the World Wide Web (WWW). A URL specifies the site of a target saved on a local or networked computer. A file, directory, HTML page, image, application, and more can all be the target. The organization of your website’s URL and internal links is crucial to how well it works. This is crucial to ensuring that your website can be successfully ... Read More

Add a Series to a Chart in Excel

Pradeep Kumar
Updated on 06-Dec-2022 11:58:23

2K+ Views

In this tutorial, we will show how you can add an additional series to an existing chart without recreating the chart. This can save you a lot of time and also help you understand the outcome if any new data is added. Using a small trick, we can add a new series to a chart in Excel. Adding a Series to a Chart in Excel Let us suppose we have the following data available in an Excel sheet. To start with, we will convert this available data to a chart. Step 1: To create the chart, select the data ... Read More

Add HTML and CSS to PDF

Shubham Vora
Updated on 06-Dec-2022 11:39:20

9K+ Views

In this tutorial, we will learn how we can add HTML and CSS to PDF. The HTML and CSS construct the webpages with styles and designs. We can save that webpage as a PDF file. Creating a PDF from scratch using vanilla JavaScript makes it very difficult, and the code will be lengthy. There are many libraries created upon JavaScript that will helps us to execute our task. The libraries like html2pdf, jsPDF, etc. are well-known libraries that convert webpages into pdf. These libraries can be implemented in the project using the script we are adding to the program. So, ... Read More

Why Using onclick in HTML is a Bad Practice

Shubham Vora
Updated on 06-Dec-2022 11:35:18

6K+ Views

In this tutorial, we will learn why using onClick() in HTML is a bad practice. There are events and methods in JavaScript to handle the actions like clicking, hovering, etc. The onClick() is the most used method that executes a function on clicking an element. This method is applied to the element as its attribute. It may contain the name of the function or the script itself. JavaScript also contains the addEventListener method used to execute a function on the occurrence of an event. There are many ways to execute events, and every way has advantages and disadvantages. ... Read More

Append to innerHTML Without Destroying Event Listeners in JavaScript

AmitDiwan
Updated on 06-Dec-2022 11:21:10

1K+ Views

Yes, it is possible to append to innerHTML without destroying descendants event listeners. Let us see an example. First, we will create two functions with JavaScript. Here’s the demoFunc() − function demoFunc() { alert("Hello"); } The function demoFunc() above will display an alert box and a message. With that, the start() function loads when you load the web page and displays “Two” with “One” in the div. Here’s the start() function. We have appended the text “One” from the div with the text “Two” using the innerHTML property − function start() { mydiv.innerHTML ... Read More

Capture HTML Canvas as GIF, JPG, PNG, PDF with JavaScript

AmitDiwan
Updated on 06-Dec-2022 11:18:06

3K+ Views

We can Use the canvas.toDataURL() to capture HTML canvas as different file formats, such as gif, png, jpg, webp, etc. Capture HTML Canvas as png Example Herein, after using canvas.DataURL(), set the type to image/png to allow saving the image as PNG − window.onload = function() { var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); context.fillStyle ... Read More

Advertisements