JavaScript Objects

Document Object

The document object encapsulates all JavaScript objects that correspond to the HTML elements. It is the parent of forms, links, and anchors. These objects occur as arrays and are accessed as document.Forms[xx], document.Links[xx], and document.anchors[xx], where xx is an array index.
The document object also has several other useful properties. It has a property, for example, for all of the standard object colors, such as the background color, text color, and link colors. You cannot change the property of a static closed document, however, so these properties are useful only when building a document.

Location Object

The location object mostly holds information about the URL to which the browser points. The browser reads this marked up text from the server's disk and interprets it just like Microsoft Word reads and interprets a file on your disk.
In addition to the URL, the location object also contains any post parameters of an HTML form submitted via a Submit button or your call to submit(). Because of this, you can use the location object for temporary storage.

The script works by first obtaining the current location. It then strips off the file name and replaces it with the value of the radio button clicked. It also makes sure to tack on the suffix, .htm. It presumes that the message HTML files are in the same directory as the current page.

However, it would be easy enough to build in a subdirectory name just for the messages or even have a separate subdirectory for each person. The location object then set to the newly constructed URL. Setting the location object retrieves the file at this place.

History Object

The history object is a list that contains the locations of all the URLs that you have visited. You can move backward and forward through the history list with history. back and history.forward. You can also move around in the list in a relative fashion with history.go().
This function takes a positive or negative integer argument and moves you that many URLs forward or backward in the history list. The only property of a history list you can access is its length, which is the number of items in the list. You can neither set nor retrieve history list items.

Although it would be useful to retrieve history list items, this functionality removed from JavaScript. Unfortunately, each history list entry contains the entire location, including the search string.
If this information could be retrieved, the possibility exists that malicious individuals might glean credit card or other personal information.



Server Location


Visit Now

Cloud SSD Hosting
$1.43 /mo. WILMINGTON, DE, US Price @ $1.43 /mo. Visit Now
247-host $2.99 /mo. LASALLE, CA Price @ $2.99 /mo. Visit Now $2.75/mo. Burlington, MA, US Price : $2.75/mo. Visit Now
Lifetime Free Domain
$3.95/mo. Panama, PA Start @ $3.95/mo. Visit Now
webhostingpad $1.99/mo. Arlington Heights, IL, US Start @ $1.99/mo. Visit Now
webhostingbuzz $4.95/mo AUBURN, MA, US Start @ $4.95/mo Visit Now
Cheapest Webhosting
$3.25/mo. Burlington, MA, US Start @ $3.25/mo. Visit Now
ixwebhosting $3.95/mo Columbus, OH, US Start @ $3.95/mo Visit Now
sitevalley $4.95/mo NASHUA, NH, US Start @ $4.95/mo Visit Now
Managed WordPress Hosting
$89.00/mo. Lansing, MI, US Price : $19.00/mo. Visit Now

Published by ananovareviews

I'm Communication Director with SCPL. Our goal is to deliver the most accurate information possible based on the needs of the majority of website owners and developers, and Ananova reports deliver the most reliable indicators of web host performance. -

%d bloggers like this: