379Chapter 16Window and Frame ObjectsExampleThe (Space web hosting) first example asks

379Chapter 16Window and Frame ObjectsExampleThe first example asks the user if it is okay to add a Web site to the Active Desktop. If ActiveDesktop is not enabled, the user is given the choice of enabling it at this point. external.AddDesktopComponent( http://www.nytimes.com , website , 200, 100, 400, 400); In the next example, the user is asked to approve the addition of a URL to the Favorites list. The user can follow the normal procedure for filing the item in a folder in the list. external.AddFavorite( http://www.dannyg.com/update11.html , JSBible 5 Support Center ); The final example assumes that a user makes a choice from a selectlist of items. Theonchangeevent handler of the selectlist invokes the following function to navigate to a fic- titious page and locate listings for a chosen sports team on the page. function locate(list) { var choice = list.options[list.selectedIndex].value; external.NavigateAndFind( http://www.collegesports.net/scores.html , choice, scores ); } frameElementValues:frameor iframeobject reference.Read-OnlyCompatibility:WinIE5.5+, MacIE-, NN-, Moz-, Safari- If the current window exists as a result of a or