MediaCenter.EnableOnLoadOnReturnFromMediaCenter Property

Gets a value that indicates whether an HTML page receives the onLoad event when the user returns to the page after having navigated away from it.

Note   This property has been deprecated.

Syntax

  MediaCenter.EnableOnLoadOnReturnFromMediaCenter

Property Value

A read/write Boolean value. An HTML page should set this property to true if it needs to receive the onLoad event when the user returns to the page, or false otherwise.

Remarks

An HTML page always receives the onLoad event when Windows Media Center loads the page for the first time, or when the user uses the Back button to return to the page from another page in the application, regardless of the value of this property. This property affects whether page will receive the onload event only when the user uses the Back button to return the application from a Windows Media Center view such as full-screen. In this case, while the page receives the onload event, it is not actually reloading, so your global variables will retain the same values they had when the user left. This can cause problems in any logic attached to the onload event that assumes that the global variables are getting reset to their original values whenever the event occurs. A simple way to avoid such problems is to set this property to false on each page when it loads.

Requirements

Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista

See Also