... click the link, an alert box should come up and say Off to the Book
of JavaScript! (Figure 4-6). When you click OK in the box, the page should
load the Book of JavaScript website.
Figure 4-6: The ... "alert('Off to the Book of JavaScript! ');">Visit the Book of
JavaScript website</a>
Figure 4-5: A link that calls an alert
Try...
... click the link, an alert box should come up and say Off to the Book
of JavaScript! (Figure 4-6). When you click OK in the box, the page should
load the Book of JavaScript website.
Figure 4-6: The ... sets the left border of the window you’re moving. If you move
the left border of the window into the center of the screen, the window will
be too far...
... sets the left border of the window you’re moving. If you move
the left border of the window into the center of the screen, the window will
be too far to the right. To get the window to the center ... it.
The function
multiplyTheFields() does all the work. The code in X
of Figure 7-16 looks up the
value of the text field field_one (]) inside the
fo...
... along the colon. It
then loads the first part of the element into
the_ property and the second part
into
the_ value.
The first time through the loop,
the_ property is "name" and the_ value
is
"thau". ... Description
parentNode
Parent node of the node
childNodes
List of the children of the node
firstChild
First child of the node
lastchild...
... tags, 23 7 23 8
left
component, 23 6
property
of browser window, 72
of
div element, 23 9
length property
of
array element, 126 , 414
of
form object, 425
of
history element, 427
of
radio element, 439
of
select ... ActiveXObject("Microsoft.XMLHTTP");
INDEX 477
go() method, of history element, 427
Goodman, Danny (The Javascript
Bible), 4 12
Google
Maps, 26 1,...
... Information 22 0
Setting the Duration of a Cookie 22 2
Who Can Read the Cookie? 22 4
The Whole Cookie 22 4
Setting Multiple Cookies 22 5
Cookie Libraries 22 5
A Cookie-Based Shopping Cart 22 6
Adding an ... 22 6
Adding an Item to the Cart 22 7
The Checkout Page 22 9
The readTheCookie() Function 23 0
The checkOut() Function 23 1
Summary 23 2
Assignment 23 2
xxviii...
... 4,000.
Going Off the Deep End
The script in Figure 8-8 looks at the values of form elements 0 through 3,
which are the four checkboxes at the start of the form. The next form
element in the figure is the ... X. The first line in the body of the func-
tion then swaps the image stored in position 0 of
the_ images with the image
on the page. If
rotateIm...
... of the upper-left corner and the x and y coordinates of the lower-right
corner, in pixels. So the first area in Figure 10-19 goes from the (9, 23 ) point
of the image to the (41, 42) point of ... indexOf(), the lastIndexOf() method gives you the
position of the last occurrence of a character or substring. Table 11-1 shows
the value of various calls to
i...
... into which the results of
the script will be placed. The
ems you see in the style of the div set the width
of the
div equal to some multiple of the width of the letter m (em) in the font
being ... browser, the script will automatically adjust the
width of the
div. The JavaScript code will automatically change the height
of the
div as the...