When you have lots of ... ... and you plan to usethem on many web pages, it is always ... to keep them in ... file, and then include that file on every page ... functio
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.
and it has a function to return the bigger number of the two supplied as parameters (you can simply start with the function, no need to write
In this way, we can use all the complex functions contained in the myjfuncs.js file.
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