Posted Tuesday, December 7, 2004
It's very simple. Use any text editor of your liking (if you hand-code your HTML, you can use the same editor that you use for your HTML editing). Write the required code, and save the file with .js (dot js) extension.
I'm going to give you a small example.
function bigger(num1, num2)
In a similar manner, we can have
function smaller(num1, num2)
alert ("The bigger number is: " + bigger(n1, n2));
In this way, we can use all the complex functions contained in the myjfuncs.js file.
About the Author
Amrit Hallan is a freelance web designer. For all web site development and web promotion needs, you can get in touch with him at firstname.lastname@example.org or (http://www.bytesworth.com). For more such articles, visit (http://www.bytesworth.com/articles) You can subscribe to his newsletter [BYTESWORTH REACHOUT] on Web Designing Tips & Tricks by sending a blank email at email@example.com