How to Onclick Disable Input Field JavaScript

Sometimes, we need to prevent users to fill the input fields. To do that we have to disable input fields using JavaScript or jQuery. In this article, we are going to learn this technique in JavaScript. Disable Input Fields Using JavaScript It is quite easy to disable an input field using JavaScript. Here, we are going […]

How to Get URL Parameters Using JavaScript

We can get values of URL parameters using the searchParams object in JavaScript. Here we are going to learn some main methods to get various parameters from the URL. Get Single Parameter We can get the value of a single parameter using the get() method. Example <!DOCTYPE html> <html> <body> <script> var url = new […]