-
Contributing Member
Re: How to use JavaScript in HTML page
Hi,
just create a .js file using notepad editor i mean javascript function u bind the javascript file in html using script tag 'src' attribute like
Ex:
Example.js
----------
function f1(t)
{
if (t.value=' '){
alert('Text Box shold not be empty')
}
}
Example.html
-------------
when ever u click the button it will call the js file f1 funtion it will verify the text box data if it empty it will give the alert message if not nothing will happen.
do u have any quries let me know......
Regards,
Hari Prasad
Last edited by hari.nattuva; 06-13-2007 at 09:36 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules