Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using HTMLHost

In a traditional browser environment, JavaScript offers several ways to control the window into which the HTML content has been loaded. A similar set of methods is available in AIR. The original JavaScript methods are not actually available—only the modified version provided by AIR. For example, in a traditional browser-based application, JavaScript can change the value of a browser’s status bar by using the window.status property; however, an AIR application does not natively have a status bar, therefore this property does not behave in the same way. Instead of discarding these common JavaScript APIs, AIR provides a simple way to override the default functionality and behavior for these various properties and methods.

By default, the following JavaScript properties and methods are disabled when an HTML control is created:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint