javascript - Chrome App: Window interacting with another window's HTML code -
i'm coding app which, in main window's javascript code, creates new window.
mainwindow.js :
chrome.app.window.create('sample.html', { id: 'newwindow', 'bounds': { 'width': 200, 'height': 200 }, 'resizable' : false, 'alwaysontop' : true, 'frame': { type: "none" } }, function(createdwindow) { /*here*/ })
sample.html :
<!doctype html> <html> <head> <title>chrome app</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style='background-image: url("img1.png"); height: 50px; width: 200px;'> </body> </html>
the thing i'd interact sample.html code inside mainwindow.js, in order change path of background image. there way ?
Comments
Post a Comment