JavaScript
(I retired in 2018 from computer programming and I am no longer updating this page so it may get outdated.)
See also my pages for:   Online Tips
Programming
Windows
Links | Tips | Newsgroups

  Webpages can be interactive with JavaScript, an object-oriented, event-driven, scripting language developed by Netscape. It can be used with HTML to make a webpage dynamic and functional. (On the current page, JavaScript code is between "<script " down to "</script>".) On my website I use it to animate my buttons (see Image rollover), to load images faster on my webpages (see Preload images), and for popup windows to show photos and videos (see Popup windows). I was a programmer until I retired in 2018 so this page has gotten much less attention since then.

JavaScript has had a lot of changes since I started using it several years ago. Many of the things I describe here may have been improved, but all of my methods still work fine.

Don't confuse JavaScript with Java. (see this article for quick explanation). They have some things in common but while JavaScript is a scripting language, Java is compiled, and much more robust. I used to be a Java programmer and coded only in Java and had a Java page on this site. (I haven't worked on it in years so I don't now how functional it is now.) Mozilla.org explains the likeness between the languages this way, "The basic syntax is intentionally similar to both Java and C++ to reduce the number of new concepts required to learn the language."

Enabling JavaScript
  Some browsers have a setting to enable or disable JavaScript. If JavaScript is not enabled in your browser you won't see my button animation, but with or without JavaScript enabled the buttons will still link to the intended targets. Here is the location of this setting in several popular browsers. (These may have changed since I listed them)
        Firefox  -  Tools » Options » Content
        Internet Explorer  -  Tools » Internet Options » Security » Custom Level
Enable Active Scripting in the Scripting section.
        Chrome  -  On the Settings menu in the Search settings box type in:  javascript
        Opera  -  Tools » Preferences » Advanced » Content



JavaScript links

JavaScript.com
A Short History of JavaScript
JavaScript – (Mozilla Developer Network)
     Guide
     Reference
     String
     Object
     Introduction
     Array
JavaScript FAQ Knowledge Base – (mozillaZine)
JavaScript Articles – (irt.org)
Java-Scripts.net/
The JavaScript Source – tons of "cut and paste" JavaScript examples
JavaScript Kit
JavaScript Station
JavaScript Examples
JavaScript Search
HTML Goodies: Javascript References
JavaScript tutorial – (www.HowToCreate.co.uk)
Douglas Crockford's Javascript
     JavaScript: The World's Most Misunderstood Programming Language
      Code Conventions for the JavaScript Programming Language
Danny Goodman's Online Articles – author of JavaScript Bible

JavaScript tips
  Before I retired, in my job as web programmer I used a lot of JavaScript to enhance my Perl and HTML, and as I discover new things worth sharing I will add them here. I started developing this page years ago, before I was using JavaScript professionally, so some of the things offered here may be useful and functional while others may only seem clever and cute.


JavaScript newsgroups
  I used to have several JavaScript usenet groups listed here but they don't seem to function in browsers anymore, so I am just providing a link to Google Groups, where they are offered in a web format.

comp.lang.javascript

   There are more newsgroups on my Programming page.