|
JavaScript Ron Graham |
|
JavaScript is an object-based, loosely-typed, client-side
scripting language for use on Web pages.
And, since JavaScript is interpreted by the browser, anything a JavaScript function does to your page is not permanent - it "goes away" when the visitor leaves and "starts over" when the visitor returns. You can't use JavaScript to make "permanent" changes to any page on your site. You can't use it to open or to change files. JavaScript is, however, highly useful in the following areas:
[...Status Bar Message active below this window...]
The problem with a status bar message is that it takes over the status bar. Normally, if you move your mouse over an active link, the browser default is for that link's destination to show up in the status bar. Some users hate to have that default lost. NOTE: Your mileage will vary in terms of how much your site visitors will want these effects. Some find such effects as pop-up windows and status bar scrolling text distracting. References
Ron's Pokemon Bingo script Examples Here is a simple example of JavaScript -- it's used on this page to tell readers when the page was last updated: Last updated <script language="JavaScript"> <!-- // hide as appropriate document.write (document.lastModified); // stop hiding --> </script> Following are other simple examples, with captions. These JavaScript functions work on most Web browsers: JavaScript Clock Note Pad Alert Box |
|