Archive | JavaScript

Add HTML Control with JavaScript

This chapter explains how to display add HTML control dynamically through JavaScript. Click for Demo : Add HTML Control Download the script : Add HTML Control

Read the full story

Posted in JavaScript, JavaScript, Programming, Project0 Comments

HTML & JavaScript Loader

In this program just change the source of  iframe and your loading.gif will show upto that time when page will not upload finally. For Demo Click Here Download Script Click Here

Read the full story

Posted in Article, HTML, JavaScript, Programming, Tutorial0 Comments

JavaScript – Agree Before Entry -Source Code

Save this code as external JavaScript file named: agree.js var agree=0; // 0 = ‘no’, 1 = ‘yes’ function agree2() { if (!document.getElementById) return false; agree=1; document.getElementById(‘box’).style.background=’#fff000′; if (agree) { document.getElementById(‘enterName’).style.visibility = ‘visible’; } document.enableform.box.focus(); } function disagree() { if (!document.getElementById) return false; agree=0; if (!agree) { document.getElementById(‘enterName’).style.visibility = ‘hidden’; } document.enableform.done.focus(); } function goSubmit() [...]

Read the full story

Posted in JavaScript, Tutorial0 Comments

Free-Code-JavaScript

JavaScript – Increament function Script JavaScript – E-mail Validation Script

Read the full story

Posted in JavaScript0 Comments

JavaScript – Increament function

<HTML><HEAD><TITLE>ABC</TITLE> <SCRIPT LANGUAGE=”JAVASCRIPT” TYPE=”TEXT/JAVASCRIPT”> <!– a = 23; function ad() { a = (++a); alert(a); } //–> </script> </HEAD> <BODY> <a href=”javascript:ad();” mce_href=”javascript:ad();” title=”Add more” name=”add”> Add More Records </a> </BODY></HTML>

Read the full story

Posted in JavaScript0 Comments

OnSubmit

                    When using JavaScript to check a form, the first thing you need is the onsubmit event handler. This event handler specifies a script that is executed when the user submits the form. That script is where you check whether certain fields have a value, whether the user has checked at least one checkbox, and [...]

Read the full story

Posted in JavaScript0 Comments

Form methods and properties

                  JavaScript has a few built-in methods and properties for dealing with forms. Three of them are especially important:                   You can submit a form by using the submit() method. To submit the first form on the page, do document.forms[0].submit()                   Please note that when a form is submitted by JavaScript the onsubmit event handler [...]

Read the full story

Posted in JavaScript0 Comments

Accessing the form elements

                 The form validation script needs to access the form in the HTML page to determine what values the user has filled in. So first we have to enter the form by means of the Level 0 DOM. The general syntax for accessing a form element is: document.forms[number].elements[number]                  When the page is loaded, JavaScript makes [...]

Read the full story

Posted in JavaScript0 Comments

Determining values

             Of course, the most important thing is to find out what the user has filled in or checked in the form. At other times you might want to fill in something in the form.              Below are snippets of scripts that help you access form elements. All of them are meant to send the [...]

Read the full story

Posted in JavaScript0 Comments

JavaScript – Email Validation script

var emailfilter=/^w+[+.w-]*@([w-]+.)*w+[w-]*.([a-z]{2,4}|d+)$/i function checkmail(e){ var returnval=emailfilter.test(e.value) if (returnval==false){ alert(“Please enter a valid email address.”) e.select() } return returnval }

Read the full story

Posted in JavaScript0 Comments


Page Rank

Skype Online Status

Call me! - Shashidhar Kumar: My status is Offline