Go to:  Site entry | Site contents | Site index | Internet | JavaScript | Text bottom

 About  JavaScript  Selection

JavaScript is a scripting language of a web browser which is executed by a client computer.  Server-side JavaScript also exist, but it is not discussed here anyway most servers run PERL as a scripting language for the CGI programming.  Client-side JavaScript, however, seems to be the most widely used browser scripting language since both Netscape and Microsoft support it in their web browsers that clearly dominate the market.  This is very important if you provide some content for the Web the last thing you might want to happen to all your work is to become just another casualty in the fierce browser wars.

JavaScript is a powerfull and flexible scripting language that permits to bring dynamics to web pages by modifying otherwise static HTML code or by generating it from scratch.  Being a script of a web browser, it doesn't require a separate installation (it might be only necessary to enable it in the browser settings), it provides many additional features to HTML, it is dependable and reasonably stable, and it is supported by hyperlinked documentation and interactive debugger.

This selection contains JavaScripts which were chosen mainly as code patterns to illustrate some of the JavaScript capabilities and to suggest a consistent programming style facilitating code maintenance and modifications.

"Consistent" is a key word here almost any style is as good as any other once the consistency is provided.  It is important to note that the same coding style can be used with a wide variety of programming languages making it easier to switch between them.  If you'll look at other programming examples on this site, you'll see the illustarion of the above statement the same coding style throughout, which is only slightly adjusted to accomodate for the specifics of the corresponding language.

However, each JavaScript is not a mere exercise in a code styling it provides on most part a useful function which is debugged to the best of my ability and is normally tested by several years of intensive usage.  This is not to say that it is in any way guaranteed to be error-free you will be using any code you pick from this site entirely at your own risk and will be completely responsible yourself for any problems which might arise from this usage.  So when trying code, please exercise the common sense precautions and test code most thoroughly yourself before applying it to anything important.

This legal mantra been chanted, I want to mention that all bug reports and any comments about my code are most welcome, and I'll try to do my best to fix any known problem as quick as I'll be able to do this.

JavaScripts are grouped together according to their function into the following groups:

 •   References   JavaScript sections of PC FAQ and selection of Code Patterns
 • Dynamic Content Generate adaptive HTML code for specific content presentation
 • Document Control Control the way the document text is diplayed by the browser
 • Random Selection Select object[s] at random from a predefined set of objects
 • Shorthand   Substitute bulky HTML code for a short description
 • Miscellaneous Miscellaneous unclassified scripts


Go to:  Site entry | Site contents | Site index | Internet | JavaScript | Text top