Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Last active August 29, 2015 14:02
Show Gist options
  • Save kuc-arc-f/2035e9a79b6d938c895f to your computer and use it in GitHub Desktop.
Save kuc-arc-f/2035e9a79b6d938c895f to your computer and use it in GitHub Desktop.
function click_sub()
{
chrome.app.window.create(
'sub.html',
{id: "browserSlideID",
bounds: {
'width' : 1024,
'height': 600
}
}
, function(appWin) {
appWin.contentWindow.addEventListener('DOMContentLoaded',
function(e) {
console.log( '#.DOMContentLoaded' );
var text1 = appWin.contentWindow.document.querySelector('#id-text1');
text1.setAttribute('value', "moji-1234 from topWindow");
appWin.show();
}
)
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment