Reputation: 85
i'm new at chrome packaged apps development and i need support for creating and opening a new window with a button click from the offline packaged app window and communicate between the 2 windows. An example would be very nice.
thanks
Upvotes: 0
Views: 1287
Reputation: 874
This should do the job:
chrome.app.window.create(url, options, function(window){
//do something with your window
});
url
is the url to the html page, relative to the root of your packaged app directory.
the documentation tells us what to do with the options: http://developer.chrome.com/apps/app_window.html#method-create
Upvotes: 1