In this tutorial, you will learn how to detect credit card type in javascript. If you have ever made a purchase online, then you know there is always a requirement for a credit card to make a payment. Most of the websites use third-party services to handle the payment such as Stripe, Paypal, etc. As
In this tutorial, you will learn how to check if passwords match in javascript. You only need such a mechanism when a user is about to sign up on your website or about to change the password. It is a common convention to verify if the password entered by the user is actually the one
In this tutorial, you will learn how to close tab or window created using javascript. As you already know, in almost every browser, you can open as many tabs or windows as you want, and depending upon the browser and kind of website you are visiting, your CPU and RAM usage will increase. You can
In this tutorial, you will learn how to go back to previous page using javascript. Almost in every browser, we have a back button to navigate back to the previous page. The functionality of the back button is based on browser history which makes it easy for a user to go and back forth. But
In this tutorial, you will learn how to add line break in javascript alert. Showing an alert message is a common pattern to notify your website users about success, warning, or error during form submission. You may have seen websites where as soon as a visitor land on the webpage, they show an alert message