... scripts, the JavaScript object world
begins to wrap around itself in a way. Despite all the attributes that define a link,
JavaScript regards a link as the same as a location object (Chapter 15). ... direct the URL to a JavaScript function. The
URL
javascript: functionName()
is a valid location parameter for the
HREF
attribute (and not just in the link object). Using the
javascript:...
... covered later in this chapter.
658
Part III ✦ JavaScript Object and Language Reference
The object parameter is not the string name of an object, but the object itself.
JavaScript delivers an ... possible in JavaScript.
JavaScript control structures follow along the same lines of
many programming languages, particularly with additions
made in Navigator 4 and Internet Explorer 4 (for...
... 32. 32 and 32. 33.
c)
Pa1013.5
1000.3
)mW1040.1()9.02(
W/m1040.1,9.0
6
s
m
8
23
rad
22
pIW
Pa1087.8
1000.3
)mW1040.1()1.02(
mW1040.1,1.0
6
s
m
8
22
rad
23
pIW
32. 41:
a) ...
32. 15:
J105.2)m100.2()4()mW100.5()4(
25210 232
av
rIP
32. 16:
a) The average power from the beam is
W104.2)m100.3()mW800.0(
4242
IAP
b) We have, using E...
... doing something) via three routes:
JavaScript object event handlers; javaScript statements; and
HREF= attributes
pointing to a
javascript: URL.
722
Part III ✦ JavaScript Object and Language Reference
You ... Netscape’s JavaScript
Debugger, described in Chapter 46). The methods are
watch() and unwatch().
The
watch() method instructs JavaScript to keep an eye on a particular pro...
... another type.
35
35
CHAPTER
✦ ✦ ✦ ✦
In This Chapter
Converting strings
into object references
Converting strings to
numbers for math
Adding comments
to scripts
✦ ✦ ✦ ✦
732
Part III ✦ JavaScript Object ... can be used anywhere in a script. If you’ve
read earlier chapters, you have been introduced to many of
these functions and statements. This chapter is presented as
a convenient pl...
... back to JavaScript, that passed object is converted to its original
JavaScript object type. But objects of other classes are passed as their native
objects wrapped in JavaScript “clothing.” JavaScript ... of the way LiveConnect
adapts data types to JavaScript.
Any Java object that contains numeric data is converted to a JavaScript number
value. Since JavaScript numbers are IEEE d...
... newWindow.document.write(“Howdy”)
2. Write the JavaScript statement that displays a message in the status bar
welcoming visitors to your Web page.
3. Write the JavaScript statement that displays the ... script function. The technique involves a pseudo-URL
called the
javascript: URL. If you place the name of a function after the
javascript: URL, a scriptable browser runs that function. S...
... enough:
<BODY>
<UL>
<LI>First item
<SCRIPT LANGUAGE= JavaScript1 .1”>
<!
66
JavaScript Applications
The sample page described in this chapter and in whatsnew.htm is pretty boring
to look ... site while surfing the Web. You
52
52
CHAPTER
✦ ✦ ✦ ✦
In This Chapter
Temporary and
persistent cookies
World time
calculations
CGI-like intelligence
✦ ✦ ✦ ✦
69
Chapter...
... “Blank Frames” in Chapter 14 for further details about this technique for
Navigator 3 and later.
Related Items:
document.open()
;
document.close()
;
document.clear()
.
✦ ✦ ✦
327
Chapter 16 ✦ The ... quit
Navigator.
332
Part III ✦ JavaScript Object and Language Reference
Listing 16-12: Text Selection
<HTML>
<HEAD>
<TITLE>URL Property Reader</TITLE>
<SCRIPT...