admin管理员组文章数量:1395785
i am beginner in field of chrome extension. currently i am making an extension in which i want to open a new page in extension tab on a single click. so this is my code for popup.html
<html>
<head>
<title>Open Google</title>
</head>
<body>
<a href="">Google</a>
</body>
</html>
google link is working when i opened it as a html page but this is not working in my extension. this is my manifest.json file
{
"manifest_version": 2,
"name": "Open Google",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"activeTab"
]
}
i am beginner in field of chrome extension. currently i am making an extension in which i want to open a new page in extension tab on a single click. so this is my code for popup.html
<html>
<head>
<title>Open Google</title>
</head>
<body>
<a href="https://google.">Google</a>
</body>
</html>
google link is working when i opened it as a html page but this is not working in my extension. this is my manifest.json file
{
"manifest_version": 2,
"name": "Open Google",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"activeTab"
]
}
Share
Improve this question
edited Mar 10, 2016 at 15:19
Raju VarshnEy
asked Mar 10, 2016 at 14:16
Raju VarshnEyRaju VarshnEy
336 bronze badges
1 Answer
Reset to default 10Might this helps you!
<a href="http://www.google." target="_blank">click</a>
本文标签: javascriptAnchor tag is not working Chrome extensionStack Overflow
版权声明:本文标题:javascript - Anchor tag is not working Chrome extension - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744708150a2620965.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论