I have the following code for a Chrome extension
Manifest.json:
{
"name": "Popup_DB",
"version": "0.0.1",
"manifest_version": 2,
"description": "random",
"browser_action": {
"default_title": "Alt+C for opening",
"default_popup": "hello.html"
},
"commands": {
"_execute_browser_action": {
"suggested_key": {
"windows": "Alt+C"
}
}
},
"permissions": [
"*://*/*",
"tabs"
]
}
Hello.html:
<html>
<head>
<style type="text/css">
body {width:780; height:580;}
</style>
</head>
<body>
<iframe src= "https://www.bing.com/" width="100%" height="100%" frameborder="0" id="MyFrame">
</iframe>
</body>
</html>
The website I have mentioned in iframe is a keepsake. Basically, within the popup window, I want to open a page in which all 'Go' links force opening a page in the new tab forcing the popup to close.
Is there a way to edit HTML code so that nothing opens in a new tab so that I can basically do picture-in-picture?