可以在popup.html中创建一个Action吗? 为简化起见,当用户点击按钮时,请转到“新”按钮。 popup.html ..
我尝试创建一个菜单,使用按钮指示Autors,以及点击结果有关autors的信息。
到目前为止关注我的项目..
的manifest.json
{
"manifest_version": 2,
"name": "Autors info",
"version": "1.0",
"description": "123",
"browser_action":{
"default_popup": "popup.html"
},
"icons": {
"16": "icon16.png"
}
}
popup.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
html, body {
width: 500px;
background-color: #ADD8E6;
}
</style>
</head>
<body>
<h1>Info Autors</h1>
<h3>Click bellow to check autors story:</h3>
<button type="button" id="create">JRR Tolken</button>
</body>
</html>