Javascript samples and examples



You can make money from this site by posting original and quality articles that comply with Google AdSense policies.. Also, we offer several other reward programs including monthly profit sharing, cash rewards per post, contests & prizes etc to contributing members.

Submit Your Article

Articles

JQuery & JavaScript : A Better way to write

We all think that JavaScript so easy and we all can write better code. But have you ever thought of if you write it in a proper manner it will be really easier to maintain the code in future. Lets see what mistakes we do while writing Javascript and JQuery

RequiredField Validator + OnClientClick

This artical i'm trying to explain RequiredField Validator and confirmation message issues. For ex if we want to check requiredfieldvalidator and confirmation message at same time then first it executes client side script then only it's executed requiredfieldvalidation. Here i'm trying to explain how to overcome this type of issues in our applications.

How to write Error Proof JavaScript using Linter Tools

We all think that we are very good at JavaScript, Some people think that they are one of the best in writing JavaScript. But still their code is error prone and not good looking, Doesn't work in all browsers. To solve that we need JavaScript Linter Tools.

How to block special characters in a TextBox?

Looking for script to restrict special characters in a text box? We do require restricting the users from entering special characters in some text boxes in our application. This aarticle will prove you the java script and code for blocking special characters in a text box.

Create Multiple calender control on runtime time

Hi, If you want to create an unlimited calender control with textbox. try to my code. if you want to that user can enter multiple dates on single page as per over requirement. we can done do this using javascript. when user click on create button a texbox and calender button will be created. user can delete all control by single click on remove button.

How select one radio button from multiple radio button in gridview

If you want to placed a radio button in gridview as selecting one out of more then one radio button, so use my resources. In this resources user can select single radio button option out of multiple radio button from gridview control using by javascript. No need for define group name in radio button.

Disabling the right click on web page using javascript

This code will disable right click on page. This code will disable Copy and paste functionality of the windows. Use this code in Head tag in HTML document. With the help of this code you can prevent your web page content for copy and paste functionality. How to use the code for copy and paste disabling.

How to validate user input using JavaScript ?

In this article I have explained in detail about JavaScript validation. Most of the beginner want to know about JavaScript validation I cover all validation part in this article. In this article I separately explain JavaScript validation using ASCII Code and Regular expression like Alpha character only allowed / Alpha numeric character and email validation etc.

Google Maps using JavaScript

In this article, I will explain how to create Google Maps in JavaScript. Google Maps is a web mapping service application and technology provided by Google. Find Google Maps using JavaScript. Find code for Google Maps using JavaScript. You can check out your Office Location, etc.

How to Find Vowels in a String in JavaScript

In this article, I will explain how to find Vowels in a String and how to find total number of vowels in a string in JavaScript. I have written simple script for checking vowels in a string in JavaScript. I have used regular expression. For me, a regular expression is best.

Simple Tab View with Yahoo User Interface Library

In this article, I will explain how to build a YUI TabView widget completely from script. The YUI TabView Control is designed to enable developers to create navigable tabbed views of content. This demonstrates how to build a TabView from JavaScript.

Overview - Javascript function acts as a class

This code snippets explained, How the function will act as a class in javascript. We can also define our own custom events for particular object through this class. Classes are very useful for storing many values into one object rather than creating many variables. A class holds many variables, methods, events. So using classes we can handle all the critical solution easily. Here I explained the class using one clear example.

Submit Your Article