HTML and CSS Reference
In-Depth Information
EXPLANATION
1
This link goes to the Yahoo! search engine's main site and searches for the word
“JavaScript tutorial.” Note: The browser inserted a %20 for the space between
“JavaScript”and “tutorial”, an example of URL encoding.
2
This link goes to the Google search engine's main site.
3
This link goes to the Bing search engine's main site.
4
The size of the
links[]
array is determined by the
length
property. It displays the
number of links in the document.
5-10
The
for
loop is used to iterate through the links array and display some of its prop-
erties. The output is shown in Figures 12.4 and 12.5.
Figure 12.4
Viewing the properties of the
links
object.