This example demonstrates how to use the setActive method between windows. Click the 'Set Active' button below to set the 'Second Button' as the active object in its window.
By clicking the button and setting the object active in its window, the object receives focus as soon as its page receives focus. To confirm that the object is active, click on its window's title bar. The button appears to be selected.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.