From LiveScript® to JavaScript®
|
||||
---|---|---|---|---|
|
A Programming Language for Client-Side Events
Using JavaScript® On the WebJavaScript has become an integral part of most Web sites. But, of all you see happening on your Web page, what is JavaScript? (Certainly, the floating icons you may see floating over this page are controlled by JavaScript. But it also serves more serious purposes for Web sites.) But, first, of all, let me tell you what JavaScript isn't:
Scripted Beginnings Also unlike Java, which can be used as a strong server-side technology, JavaScript must be interpreted by the Web browser. So it is strictly a client-side technology. However, if you serve up web pages under a Web-hosting plan that does not include CGI access, then a lot of the webmaster-to-enduser and special "service" capabilities must then use JavaScript. Because JavaScript is interpreted by the browser, it adds overhead to a page. It is, therefore, important to use JavaScripts that aren't needlessly complex, less load times increase appreciably. Like everything else on the page, the browser must interpret and render it line-by-line. You will likely notice that this page loads much slower and renders a bit different than the other pages. That's because the "falling and dancing text" JavaScript used at the top of this page is lengthy and complex, and takes a toll on the rest of the page. TIP: Want to turn off the JavaScript on a page to access, for example, the object of a JavaScript rollover that disappears when you roll over or click on it? |