manifest.json こちらは前回のままで変わりありません。 popup.html 今回はjqueryを使いました。main.jsは後述しますが、そこからframe属性のdiv要素に動的に生成されたiframeが書き込まれます。 <!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"> <script type="text/javascript" src="jquery-1.9.1.js"></script> <script type="text/javascript" src="main.js"></script> </head> <body style="min-width:250px;margin:0px;"> <div id="frame"></div> </body> </html> main.js こちら
![Chrome拡張機能の開発: サーバーとどうやって通信するか? | 非IT企業に勤める中年サラリーマンのIT日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/6e8042d215146e66082761ebcce3b1605d716e2d/height=288;version=1;width=512/http%3A%2F%2Fpineplanter.moo.jp%2Fnon-it-salaryman%2Fwp-content%2Fuploads%2F2015%2F02%2F0.png)