B.3. Using text-utils.jsYou can use text-utils.js by adding a <script> tag to the <head> section of your web page's HTML, just like you did with ajax.js: <head> <title>Ajax-powered Coffee Maker</title> <link rel="stylesheet" type="text/css" href="coffee.css" /> <script type="text/javascript" src="/books/2/850/1/html/2/ajax.js"> </script> <script type="text/javascript" src="/books/2/850/1/html/2/text-utils.js"> </script> <script type="text/javascript" src="/books/2/850/1/html/2/coffee.js"> </script> Remember to leave a space between the <script> opening and closing tags, so all browsers will load your external JavaScript. </head> |