拡張機能のボタンをクリックすると、ポップアップが表示される。
manifest.json
- {
- "name": "My First Extension",
- "version": "1.0",
- "manifest_version": 2,
- "description": "The first extension that I made.",
- "browser_action": {
- "default_icon": "icon.png",
- "default_popup": "popup.html"
- }
- }
{
"name": "My First Extension",
"version": "1.0",
"manifest_version": 2,
"description": "The first extension that I made.",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
}
}
- <!DOCTYPE html>
- <html lang="ja-JP">
- <head>
- <meta charset="UTF-8">
- <title>popup</title>
- </head>
- <body style="min-width:250px">
- <ul>
- <li><a href="https://www.google.co.jp/" target="_blank">Google</a></li>
- </ul>
- </body>
- </html>
<!DOCTYPE html>
<html lang="ja-JP">
<head>
<meta charset="UTF-8">
<title>popup</title>
</head>
<body style="min-width:250px">
<ul>
<li><a href="https://www.google.co.jp/" target="_blank">Google</a></li>
</ul>
</body>
</html>
0 件のコメント:
コメントを投稿