I've got a simple chrome extension that is linked with an iframe. The src points to a domain with various sub pages. When a user clicks off the iframe and the panel disappears. The src is forgotten and once reactivated it reloads the original src instead of the page the user last left off. Is it possible to save the iframes src and update for the user via javascript?
manifest.json
{
"name": "Test",
"version": "1",
"manifest_version": 2,
"browser_action":{
"default_icon":"icon.png",
"default_popup":"popup.html",
"default_title": "Test"
}
}
popup.html
<html lang="en" dir="ltr">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<body style="padding:0; margin:0;"><iframe style="padding:0; margin:0;" width="315"height="306" src="http://www.example.com"></iframe>
</body>
</html>