« Home « Chủ đề JavaScript

Chủ đề : JavaScript


Có 40+ tài liệu thuộc chủ đề "JavaScript"

Javascript bible_ Chapter 6

tailieu.vn

You’ll start here learning about variables, expressions, data types, and operators — things that might sound scary if you haven’t programmed before.. in the programming world, however, the term is not as. 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...

Javascript bible_ Chapter 7

tailieu.vn

Before you’re finished here, you will learn how to use one of the most powerful information holders in the JavaScript language, the array.. Every waking hour of every day you make decisions of some kind — most of the time you probably don’t even realize it. No sooner do you enter the store than you are faced with a decision:...

Javascript bible_ Chapter 8

tailieu.vn

Starting with this lesson, the tutorial turns back to the document object model, diving more deeply into each of the objects you will place in many of your documents.. This lesson focuses on objects at or near the top of the hierarchy: window, location, history, and document. Examples in that part of the book assume you know the programming fundamentals...

Javascript bible_ Chapter 09

tailieu.vn

That’s where a lot of the cool HTML stuff lives: text fields, buttons, checkboxes, option lists, and so on. Even so, the document object must be part of the reference to the form and its elements.. The Form Object. A form object can be referenced either by its position in the array of forms contained by a document or by...

Javascript bible_ Chapter 10

tailieu.vn

F or most of the lessons in the tutorial so far, the objects at the center of attention were objects belonging to the document object model. The language has some of its own objects that are independent of the document object model.. associated with it to define what the object can do or what can be done to the object.....

Javascript bible_ Chapter 11

tailieu.vn

O ne of the cool aspects of JavaScript on the client is it allows user actions in one frame or window to. In this section of the tutorial, you extend your existing knowledge of object references to the realm of multiple frames and. You probably noticed that at the top of the Navigator document object hierarchy diagram (refer back to...

Javascript bible_ Chapter 12

tailieu.vn

Finally, I introduce you to concepts surrounding scripted control of Dynamic HTML in the level 4 browsers, and the Netscape <LAYER>. The Image Object. One of the objects contained by the document is the image object. Therefore, everything you learn here about the image object won’t apply to Navigator 2 or Internet Explorer 3 for Windows.. Because a document can...

Javascript bible_ Chapter 13

tailieu.vn

These objects have properties that often define the visual appearance of the object. Finally, these objects have event handlers that trigger the scripts you write in response to an action in the document (usually instigated by the user). Although the JavaScript language was first developed by Netscape, Microsoft incorporated its version of the language, called JScript, in Internet Explorer 3....

Javascript bible_ Chapter 14

tailieu.vn

The window.open() method momentarily creates that subwindow. Related Items: window.open() method. window.close() method.. Related Items: window.status property.. "window.name: ". window.name + "<P>". Related Items: window.parent property. window.top property.. var originalHeight = window.outerHeight. Related Items: window.resizeTo() method. window.moveTo() method. Related Items: window.open() method.. window.onerror = null. window.focus() method.. Related Items: window.innerHeight property. window.innerWidth property;. window.scrollBy() method. window.scrollTo() method.. window.name + "<BR>"....

Javascript bible_ Chapter 15

tailieu.vn

N ot all objects in the document object model are. “things” you can see in the content area of the browser window. The URL of the page you see in the browser is called the location, and browsers store this information in the location object. [window.]location = “URL”. [window.]location.property | method([parameters]). A multiple-frame window displays the parent window’s URL in...

Javascript bible_ Chapter 16

tailieu.vn

[window.] document.property | method([parameters]). Notice that only document.bgColor is. newWindow.document.bgColor + "\n". newWindow.document.vlinkColor + "\n". newWindow.document.linkColor + "\n". document.forms[0].results.value = result. newWindow.document.write(thePage) newWindow.document.close(). document.bgColor = "#c0c0c0". document.bgColor = "yellow". Related Items: document.links property.. anchorCount = document.anchors.length. The document.anchors property is read-only (and its array entries come back as null). <TITLE>document.anchors Property</TITLE>. document.write("<I>There are ". document.anchors.length + ". document.links property.. document.cookie...

Javascript bible_ Chapter 17

tailieu.vn

T he Web was based on the notion that the world’s information could be strung together by way of the hyperlink — the clickable hunk of text or image that navigates an inquisitive reader to a further explanation or related material. Of all the document objects you work with in JavaScript, the link is the one that makes that connection.....

Javascript bible_ Chapter 18

tailieu.vn

tag can be refreshed with other images of the same size, perhaps to show the highlighting of an icon button when the cursor rolls atop it. Therefore, if you intend to swap images in response to user action, no delay occurs in making the first swap: The image is already in the image cache ready to go.. Image Object. Creating...

Javascript bible_ Chapter 19

tailieu.vn

From a script in the Head section, the statement that changes the layer’s bgColor property is. Each layer’s document must define its own <FORM>. layer.siblingAbove and layer.siblingBelow values are null. layer.above and layer.below . <B>This is just a yellow layer.</B>. <B>This is just a green layer.</B>. Related Items: layer.parentLayer property. layer.moveAbove() method;. layer.moveBelow() method.. tag, but you can assign a...

Javascript bible_ Chapter 21

tailieu.vn

The Form Object. The Form in the Object Hierarchy. The form object can contain a wide variety of form element objects, which are covered in Chapters 22 through 24. In This Chapter The form object as container of form elements. <FORM. A form element provides the only way that users can enter textual information or make a selection from a...

Javascript bible_ Chapter 22

tailieu.vn

Therefore, only the text-style object properties apply to the hidden object.. tag to let all visible frames occupy 100% of the space and assign the rest. The field contents may survive unloading of the page, but whether this happens and for how many navigations away from the page the contents last depends on the visitor’s cache settings (or if the...

Javascript bible_ Chapter 23

tailieu.vn

T his chapter is devoted to those lovable buttons that invite users to initiate action and make choices with a single click of the mouse button. For such workhorses of the HTML form, these objects have a limited vocabulary of properties, methods, and event handlers.. It is important to know when to use which button — especially in the case...

Javascript bible_ Chapter 24

tailieu.vn

S election lists — whether in the form of pop-up menus or scrolling lists — are space-saving form elements in HTML pages. Select Object. options[i].defaultSelected options[i].index. options[i].selected options[i].text. options[i].value type. Creating a select object:. <OPTION [SELECTED] [VALUE=”string”]>listItem […<OPTION [VALUE=”string”]>listItem]. Accessing select object properties:. [window.] document.formName.listName.options[index].property [window.] document.forms[index].listName.options[index].property. Some properties of the object apply to the entire object, whereas other properties...

Javascript bible_ Chapter 25

tailieu.vn

Verifying that a specific plug-in is installed. navigator.property | method(). Typical navigator.userAgent Values. navigator.userAgent Description. I) Navigator 4.01, French edition for Windows 95, export encryption. U) Navigator 4.01, English edition for Windows NT with U.S.. 68K) Navigator 4.01 for 68xxx processor on Macintosh Mozilla/4.0 (compatible. I) Navigator 3.01 Gold for. PPC) Navigator 3.01 for PowerPC Macintosh. PPC) Navigator 3.01 running...