JavaScript Bible, Gold Edition part 11 ppt
... conflict. CD-30 Part II ✦ JavaScript Tutorial Listing 5-8: Running a Script from User Action <HTML> <HEAD> <TITLE>An onClick script</TITLE> <SCRIPT LANGUAGE= JavaScript > <! ... value. In JavaScript, a value can be one of several types. Table 6-1 lists JavaScript s formal data types, with examples of the values you will see displayed from time to time....
Ngày tải lên: 06/07/2014, 05:20
... greatly appre- ciated. Now it’s time to get down to the fun of learning JavaScript. Enjoy! xvi JavaScript Bible, Gold Edition Making the transition from procedural to object-oriented programming ... found on this book’s companion CD-ROM. On the CD-ROM Caution Tip Note x JavaScript Bible, Gold Edition At first, I thought JavaScript would most often find use in validating inp...
Ngày tải lên: 06/07/2014, 05:20
... sub- windows, however. Listings 11- 2 and 11- 3 contain documents that work together in separate win- dows. Listing 11- 2 displays a button that opens a smaller window and loads Listing 11- 3 into it. The main ... Listing 11- 1 is one of many ways to script a navigation frame in JavaScript. Whatever methodology you use, much interaction occurs among the frames in the frameset. CD-104 P...
Ngày tải lên: 06/07/2014, 05:20
JavaScript Bible, Gold Edition part 23 pptx
... 68 Part III ✦ Document Objects Reference Because every event handler operates as both property and method, I don’t list these properties and methods as part of each object’s ... Extension IE5, IE5.5 (some features in all versions require Win32 OS) W3C DOM (I and II) IE5 (partial), IE5.5 (partial), NN6 (most) Basic Object Model The first scriptable browser, Netscape Navigator ... of script...
Ngày tải lên: 06/07/2014, 05:20
JavaScript Bible, Gold Edition part 43 pptx
... the second parameter, JavaScript inserts the string undefined into the dialog box’s field. This string is disconcerting to most Web page visitors. windowObject.prompt() 274 Part III ✦ Document ... originating window, you must make sure that the subwindow has an opener property if the level of JavaScript in the visitor’s browser doesn’t automatically supply one. See the discussion about...
Ngày tải lên: 06/07/2014, 06:20
JavaScript Bible, Gold Edition part 49 pptx
... however, there is a disconnect between JavaScript behavior and what the browser does internally with history: JavaScript fails to connect history entries to a particular frame. Therefore, a reference ... at all in IE3 (it generates an error alert); for IE4+, the matching string must be part of the URL and not part of the document title, as in Navigator. Finally, the reloading of a pag...
Ngày tải lên: 06/07/2014, 06:20
JavaScript Bible, Gold Edition part 52 ppt
... document.Title property (which, in the case-sensitive world of JavaScript, is distinct from the native document.title property). document.expando 364 Part III ✦ Document Objects Reference One more variation ... forms in the document, the array is three entries long. Use standard array notation to reference a particular form from the document.forms array. For example, the first form in a...
Ngày tải lên: 06/07/2014, 06:20
JavaScript Bible, Gold Edition part 58 ppt
... behaviors and capabilities of these two similar objects. Although Microsoft participated in the W3C DOM Level 2 working groups, no participant from the company is credited on the DOM specification chapter ... event fires. Related Items: loop property of MARQUEE object. On the CD-ROM MARQUEE.onFinish 426 Part III ✦ Document Objects Reference Syntax Creating a Range object: var rangeRef = doc...
Ngày tải lên: 06/07/2014, 06:20
JavaScript Bible, Gold Edition part 59 pptx
... 436 Part III ✦ Document Objects Reference After deleting this range’s contents, the document tree for ... reference to the document fragment node that is held in the browser memory, but which is no longer part of the docu- ment tree. A range’s contents can consist of portions of multiple nodes and may ... by an element node; that’s why its data is of the type On the CD-ROM Range.extractCo...
Ngày tải lên: 06/07/2014, 06:20
JavaScript Bible, Gold Edition part 65 pptx
... navigating to another URL, you can use a special technique —the javascript: pseudo-URL —to direct the URL to a JavaScript function. The URL javascript: functionName() is a valid parameter for the HREF attribute ... content of more than one frame at once with the help of JavaScript. If you want only JavaScript- enabled browsers to act on such links, use a javascript: pseudo-URL to invo...
Ngày tải lên: 06/07/2014, 06:20