Abdul Rawoof has Published 35 Articles

How to remove the hash from window.location (URL) with JavaScript without page refresh?

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:54:02

3K+ Views

The replaceState() method replaces the current history entry with the state objects, title, and URL passed as method parameters. This method is useful when you want to update the current history entry's state object or URL in response to a user action. To remove the hash URL, use the history ... Read More

Convert Image to Data URI with JavaScript

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:53:41

12K+ Views

JavaScript has a convention for converting an image URL or a local PC image to a base64 string. This string can contain a variety of symbols and letters. In here it is explained how to make a canvas element, load an image into it, and use toDataURL() to display the ... Read More

Converting images to a Base64 data URL using Javascript

Abdul Rawoof

Abdul Rawoof

Updated on 26-Aug-2022 11:53:01

12K+ Views

JavaScript has a convention for converting an image URL or a local PC image to a base64 string. This string can contain a variety of symbols and letters. In here it is explained how to make a canvas element, load an image into it, and use toDataURL to display the ... Read More

What is the use of Array.findIndex() method in JavaScript?

Abdul Rawoof

Abdul Rawoof

Updated on 25-Aug-2022 12:26:49

455 Views

Array is a data type which can store multiple elements of similar data types. For example, if array is declared as integer data type then it stores one or more elements of the integer data type. In JavaScript, Arrays are objects and these objects have some inbuilt functions and properties ... Read More

what is the significance of finally in javascript?

Abdul Rawoof

Abdul Rawoof

Updated on 25-Aug-2022 12:19:24

1K+ Views

In JavaScript finally is a block of code or statements that are executed in all cases while handling errors with a try and catch block whenever used. These try, catch and finally blocks in JavaScript will execute the code that is prone to error and may cause the program to ... Read More

Advertisements