Amount Field Validation Using JavaScript

When we work on any financial web application,we must use input field for amount value. Amount is very important field in any form so it must be validate before submit. This tutorial will help you  to understand how to validate amount field using JavaScript. HTML <input type=”text” name=”amount” id=”field” onfocusout=”checkAmount();”> JavaScript <script> function checkAmount() { … Read more

How To Redirect If JavaScript Is Disabled In A Browser

How To Redirect If JavaScript Is Disabled In A Browser

This tutorial will help you to understand how to redirect a web page when JavaScript is disabled in a browser. When we use JavaScript in web application, we must check for JavaScript is enabled in browser or not. Disabling JavaScript in a browser will remove web application validation and stop Ajax based actions. Redirect Page … Read more

Detect Internet Connection with JavaScript

Detect Internet Connection with JavaScript

Sometime, it becomes necessary to know about status of internet connectivity. We can know about internet connectivity in PHP also, but it is not good practice. Using client side language to detect internet connectivity is good practice because it gives connection status without reloading a page. So, using browsers property (navigate.online) we can easily confirm … Read more