You Are Viewing Posts Under Category: JavaScript Codes

How To Capitalize Every Starting Letter Of A Word In A String JavaScript?

Do you want to capitalize each first letter of the word in a string using Vanilla JavaScript? Here is the little one-line function to make any string capitalised in one process. There are many code snippets available online or on many other blogs and websites but everyone is not able to optimize you...
Sort-An-Array-With-Respect-To-Multiple-Column-In-ASC-DESC-Order-Using-JavaScript

Sort An Array With Respect To Multiple Column In ASC/DESC Order Using JavaScript

The following function will allow you to sort an array of objects on one or multiple properties, either ascending (default) or descending on each property and allow you to choose whether or not to perform case sensitive comparisons. By default, this function performs case insensitive sorts. There ar...
Pure-JavaScript-Formula-To-Calculate-And-Show-Islamic-Hijri-Dates

Pure JavaScript Formula To Calculate And Show Islamic Hijri Dates

If you do not need fancy looking Hijri calendar widget, or you want to style the calendar text by yourself, or you are a webmaster or a web developer that want to build your own Hijri calendar web applications, then the following code may be of use. The script (modified from Robert van Gent’s ...
How-To-Get-User-Location-(Lat-Long)-Using-Pure-JavaScript

How To Get User Location (Lat/Long) Using Pure JavaScript?

Detecting the location of your users can be really useful if you want to personalize your user’s experience when they browse through your website. Want to show a uniquely tailored promotion? Want to change the language of your site or design based on where your users are coming from? Lots of websi...
How-To-Detect-Internet-Connection-Using-Toast-Notification-In-JavaScript

How To Detect Internet Connection Using Toast Notification In JavaScript?

The question is that how to check or detect Internet Connection while the user is browsing your website using HTML CSS & JavaScript. In this tutorial, we will use Toast Notification to detect internet connection with HTML, CSS, and JavaScript. Here, We have shown you or taught you how you can ch...

JavaScript Simple Clock JS Code For Blog And Website

Hi to all people who love JavaScript or who will love it soon! On this website, you are going to find out the best JavaScript Codes for free! And you will be able to learn and use them in your blogs and websites. Check out these very nice and useful JavaScript codes, JavaScript code is […]...
How-To-Detect-Browser-Using-Pure-Vanilla-JavaScript

How To Detect Browser Using Pure Vanilla JavaScript?

How to Detect Browser in JavaScript. To detect user browser, YOu need to use only HTML CSS & JavaScript. In this small project (Detect Browser in JavaScript), as you can see in the preview image, there is a ‘Browser’ text with different browser logos Google Chrome, Mozilla Firefox, Microsoft...