378Part IIIDocument Objects Referencedifferent document into a (Best web hosting site) window,

378Part IIIDocument Objects Referencedifferent document into a window, use the locationobject (see Chapter 17). The documentobject is described in detail in Chapter 18. Related Items:documentobject. eventValue:Object.Read/WriteCompatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari1+ IE4+ and Safari treat the eventobject as a property of the windowobject. Navigator 4+ andthe W3C DOM (as well as Safari here, too) pass an instance of the Eventobject as an argu- ment to event handler functions. The connection with the windowobject is relatively inconse- quential, because all action involving the eventobject occurs in event handler functions. Theonly difference is that the object can be treated as a more global object when one event han- dler function invokes another. Instead of having to pass the eventobject parameter to thenext function, functions can access the eventobject directly (with or without the window. prefix in the reference). For complete details about the eventobject in all browsers, see Chapter 25. Related Items:eventobject. externalValue:Object.Read-OnlyCompatibility:WinIE4+, MacIE-, NN-, Moz-, Safari- The externalproperty is useful only when the browser window is a component in anotherapplication. The property provides a gateway between the current browser window and theapplication that acts as a host to the browser window component. With WinIE4+ acting as a component to the host operating system, the externalproperty canbe used to access several methods that influence behaviors outside of the browser. Perhapsthe three most useful methods to regular Web page scripters are AddDesktopComponent(), AddFavorite(), and NavigateAndFind(). The first two methods display the same kind ofalert dialog box that users get after making these choices from the browser or desktop menus, so that you won t be able to sneak your Web site onto desktops or Favorites listings withoutthe visitor s approval. Table 16-2 describes the parameters for these three methods. Table 16-2: Popular window.external Object MethodsMethodDescriptionAddDesktopComponentAdds a Web site or image to the Active Desktop (if turned on in the ( URL , type [, user s copy of Windows). The typeparameter value is either left, top, width, websiteor image. Dimensional parameters (optional) are all height])integer values. AddFavoriteAdds the specified URL to the user s Favorites list. The optional title( URL [, title ])string parameter is how the URL should be listed in the menu (ifmissing, the URL appears in the list). NavigateAndFindNavigates to the URL in the first parameter and opens the page in ( URL , findString , the target frame (an empty string opens in the current frame). The target )findStringis text to be searched for on that page andhighlighted when the page loads. windowObject.document

Leave a Reply