Extending the Scripting Object Model Across Pages
getState Method