|
Helping ordinary people create extraordinary websites! |
9 Javascripts You Better Not Miss!By Kiran Pai2005-06-11
9 Javascripts you better not miss! This tutorial is aimed at those who have a working knowledge of Javascript. So the examples are not explained in great detail. Only the important parts are highlighted. I have presented 9 Javascript examples that I have found very useful while designing professional websites. There are many ways to implement these examples here. The code presented here is neither the shortest nor the most efficient. But it does work satisfactorily. Please not that that wherever there is a mention of any .jpg , .gif or any other .html files, see to it that you have a dummy .gif, .jpg or .html file in the same directory as the script file so that the script finds these files. They can be any files since the logic of the script doesn't depend on these files. Try to understand the way the examples work, and you will be able to modify them and make them more useful. Also note that the entire code for the html page is not present here. Only the script and the relevant html is present. Tutorial Pages: » 9 Javascripts you better not miss! » Example 1 : A Single click for checking-unchecking multiple check boxes » Example 2 : Opening a page (existing as well as dynamic) in a new window without bars, buttons, etc. » Example 3 : Multiple submit buttons on a single form (Submitting same form to any one of many programs) » Example 4 : Emulating Browsers Back-Forward buttons » Example 5 : Making the Output of a program (servlet/cgi program) to appear in a new frame » Example 6 : Displaying a Countdown using Javascript » Example 7 : Changing images with MouseOver and MouseOut events » Example 8 : Checking the form contents before submitting the form » Example 9 : Filling the values of a dropdown SelectMenu depending on the selection in another Menu |
|