0 LIKES LikeUnLike
My big brother is a student of computer science; he needs to know the easiest way to Link JavaScripts.
Tags: easiest, Javascripts, Link
JavaScript, a programming dialect, makes it likely for you to relish numerous of the sites you glimpse on the Internet. Ordinary HTML Web sheets will not execute programming instructions. They should use a scripting dialect to present interactive jobs for example brandishing pop-up note windows. You can embed JavaScript cipher interior an HTML sheet or connection an external document that comprises the cipher your sheet needs. Websites that connection external JavaScript documents usually burden much quicker than sites that manage not. • Launch "Notepad." Open one of your HTML documents. • Locate your document's "head" part, and paste the next cipher there: <script src="External_JavaScrpt_Test.js" language="javascript" type="text/javascript"></script> This declaration connections an external JavaScript document entitled "External_JavaScrpt_Test.js." When your Web sheet burdens, the browser will get that JavaScript document and execute the cipher in it. • Press "Ctrl" and "S" to save your HTML file. • Press "Ctrl" and "N" to conceive a new document. • Add the next JavaScript cipher to the document: alert("Hello") This JavaScript cipher conceives a pop-up note carton when the cipher runs. • Press "Ctrl" and "S." Since this is a new article, the "Save As" window opens. • Type "External_JavaScript_Test.js" in the "File Name" text carton, and then bang "Save." This document becomes the external JavaScript document that your HTML article references. • Launch Windows Explorer. Locate your HTML article and double-click it. Your browser undoes and exhibitions internet page. When internet sheet burdens, the pop-up note carton furthermore appears. This happens because your sheet connections the external JavaScript document that comprises the pop-up note code.
Report (0) (0) | 12 years, 8 month(s) ago
Latest activity: 13 years ago. This question has 1 answers.