You Are Viewing Posts Under Category: JavaScript Codes

Simple-And-Clean-Fixed-Right-Side-Sliding-Panel-Using-Pure-JS-and-CSS3

Simple And Clean Fixed Right Side Sliding Panel Using Pure JS and CSS3

Do you want a clean, responsive and simple sliding widget that will slide from the right side of the screen with fixed position event whole screen is able to scroll behind it in a simple way then here is the minified code with basic syntax to achieve your target in a simple and nice way? […]...
How-To-Set-Value-Of-Input-type-datetime-local-Via-Pure-JavaScript

How To Set Value Of Input type=”datetime-local” Via Pure JavaScript?

The <input> tag with a type="datetime-local" attribute creates an input field that accepts a date and time value which does not include the timezone (hence ‘local‘). The input element with a type attribute whose value is “datetime-local” represents a control for setting the...

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...