`Case 3:17-cv-05659-WHA Document 129-11 Filed 06/28/18 Page 1 of 3
`
`
`
`
`
`EXHIBIT 9
`EXHIBIT 9
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`Case 3:17-cv-05659-WHA Document 129-11 Filed 06/28/18 Page 2 of 3 Part I: Building Killer Web Pagesfor Fun and Profit
`
`JavaScript and HTML
`
`You can think of JavaScript as an extension to HTML;an add-on,if you will.
`
`Here’s howit works. HTMLtags create objects; JavaScript lets you manipulate
`those objects. For example, you use the HTML <BODY> and </BODY> tags to
`create a Web page, or document. As shownin Table 1-1, after that document
`is created, you can interact with it by using JavaScript. For example, you can
`use a special JavaScript construct called the onLoad event handler to trigger
`an action — playa little welcoming tune, perhaps — when the documentis
`loaded onto a Web browser. (1 cover event handlers in Chapter 13.) Examples
`of other HTMLobjects that you interact with using JavaScript include win-
`dows, text fields, images, and embedded Java applets.
`
`
`Table 1-1
`Creating and Working with Objects
`
`Object
`
`HTML Tag
`
`Web page
`
`<BODY> .
`
`.
`
`. </BODY>
`
`JavaScript
`
`document
`
`Image
`
`HTML form
`
`<IMG NAME="myImage">
`
`document.my Image
`
`<FORM name="myForm">
`. </FORM>
`
`document.myForm
`
`document.myForm.
`<INPUT TYPE="button"
`Button
`
`NAME="myButton”> myButton
`
`To add JavaScript to a Web page,all you have to do is embed JavaScript code
`in an HTMLfile. Below the line in which you embedthe JavaScript code, you
`can reference, orcall, that JavaScript code in response to an event handler or
`an HTML link.
`
`You have two choices when it comes to embedding JavaScript code in an
`HTMLfile:
`
`You can use the <SCRIPT> and </SCRIPT> tags to include JavaScript
`code directly into an HTMLfile.
`
`In the example below, a JavaScript function called processOrder() is
`
`|
`
`defined at the top of the HTMLfile. Further down in the HTMLfile, the
`JavaScript function is associated with an event handler — specifically,
`the processOrder button’s onC1ick event handler. (In other words, the
`JavaScript code contained in the processOrder() function runs when a
`user clicks the processOrder button.)
`
`
`
`:
`
`FINJAN-JN 398436
`
`
`
`{
`Case 3:17-cv-05659-WHA Document 129-11 Filed 06/28/18 Page 3 of 3
`Case 3:17-cv-05659-WHA Document 129-11 Filed 06/28/18 Page 3 of 3
`
` Chapter1: All You Ever Wanted to Know about JavaScript
`
`] 5
`
`<HTML>
`<HEAD>
`<SCRIPT LANGUAGE="JavaScript">
`// JavaScript statements go here
`function processOrder()
`{
`// More JavaScript statements go here
`
`}
`</SCRIPT>
`</HEAD>
`<BODY>
`<FORM NAME="myForm">
`<INPUT TYPE="button” NAME="processOrder" VALUF="Click to process your
`order" onClick="processOrder();">
`
`</HTNL>
`
`™ You can use the <SCRIPT> and </SCRIPT> tags to include a separate,
`external JavaScriptfile (a file containing only JavaScript statements
`and bearing a . js extension) into an HTMLfile.
`In the example below, the JavaScript processOrder() functionis
`defined in the myJSfile. js file. The function is triggered, or called,
`whenthe userclicks the Click Here to Process Your Orderlink.
`<HTML>
`<HEAD>
`<SCRIPT LANGUAGE="JavaScript” SRC="mydSfile.js">
`</SCRIPT>
`</HEAD>
`<BODY>
`<A HREF="javascript:processOrder();">Click here to process your order.</A>
`</BODY>
`</HTML>
`
`
`
`Keep in mind that most of the examples in these printed pages focus on
`the JavaScript portion of the code (naturally!). But I include the HTMLthat
`you needto create the examples on the CD-ROM,so you don’t have sweat
`re-creating the Web pagesfrom scratch!
`
`Because Web pagesaren't made of HTMLalone, however, JavaScript provides
`access to more than just HTMLobjects. JavaScript also provides access to
`browser- and platform-specific objects. Browser plug-ins (such as RealPlayer
`and Adobe Acrobat), the name andversionof a particular viewer’s browser,
`andthe currentdate are all examples of non-HTML objects that you can work
`with by using JavaScript.
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`
`AL STy,
`“hs
`
`ov
`»SSly
`Together, all the objects that make up a Web site — HTML objects, browser-
`i
`bod
`and platform-related objects, and special objects built right into the JavaScript
`" 7
`
`
`language — are known as the document object model (DOM).
`
`FINJAN-JN 398437
`
`