javascript - can an EXTERNAL iframe be included into google chrome extension -
javascript - can an EXTERNAL iframe be included into google chrome extension -
i refer article:
http://julip.co/2010/01/how-to-build-a-chrome-extension-part-3-loading-any-web-page-in-a-popup/
<html> <head> <style type="text/css"> body {width:200; height:300;} </style> </head> <body> <iframe src="http://m.bing.com" width="100%" height="100%" frameborder="0"> </iframe> </body> </html> source code of extension is: http://mfi.re/?imwxngtdkhg
howver not dispaly anything.
my question is: can external iframe included google chrome extension ?
yes, can display iframe within popup. it's bit heavy , don't recommend doing it, can.
the problem extension linked manifest.json file malformed:
"manifest_version" parameter absent, , should set 2. the default popup of browser action defined using "default_popup", , using "popup" instead, wrong. here right manifest.json file:
{ "manifest_version": 2, "name": "mini bing search", "description": "search bing right browser without leaving current page.", "version": "0.1", "browser_action": { "default_icon": "icon19.png", "default_popup": "popup.html" }, "icons": { "48": "icon48.png", "128": "icon128.png" } } download working illustration here
javascript google-chrome iframe google-chrome-extension
Comments
Post a Comment