flashback2k14
flashback2k14

Reputation: 85

chrome packaged apps, open new window with button and communicate to the new window



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

Answers (1)

user1950929
user1950929

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

Related Questions