Category : Tutorials » Javascript Programming
JavaScript is an integrated application . T w o w a y s to incorporate JavaScript. – Include the script within <HTM L > d o c u m e n t .
Download File
Free PDF eBooks Download
Tutorials
Javascript Programming
Content Summary :
More Uses • Provide interactivity without C G I (Common Gateway Interface) scripts or Java – Makes forms, searches, and other types of web interaction faster, easier, and more reliable (doesn’t crash machines as often as Java does! ) • Communication within browser windows – Let frames “talk” to each other so you can change information in one frame without having to reloadthe entire web page – “MouseOver ()” actions respond to user actions JavaScript and HTML • Two ways to incorporate JavaScript – Include the script within document– Have a separate file (.js extension) that is called from your document (only available in Netscape 3.0+) Tags tags – These are the HTML identifiers that tell the browser that the page is using a scriptinglanguage. The “Language=JavaScript” identifier tells the browser that JavaScript is the specific language being used. Functions • JavaScript separated into two parts of the document – Functions are defined in the – Functions are called in the < BODY > • Comments used to hide JavaScript code from older browsers that can’t support it – In older browsers, the JavaScript code is completely ignored