google-chrome-extension
Replacing my popup.html dynamically
I have a popup.html opened when the user clicks the icon. The popup.html has a button. If this button is clicked i want to show another popup from a different html file after closing the current popup. Does anyone know how to do this.( I already have a listner attached to my button. All i want to know is hot to close the currently displaying popup and open a new one).
Popups are like regular tabs so window.location.href="..." works on them. But you can simply popup an overlay and a fullscreen iframe inside the popup window and overlay a close button over that one. <iframe src="http://target.com" style="position:absolute; left:0; top:0; right:0; bottom:0; width:... So on.
You can use innerHTML to update popup page dynamically var event_container; event_container = document.getElementById('element ID');//Get location of event container event_container.innerHTML = event_container.innerHTML + "html string you want to add";
Related Links
Can I use an alias to release a chrome extension?
Chrome Extension - make a ribbon
Minimize developer tools window while debugging a chrome extension
Getting emulated mobile view of a temporarily changed html page
Google Chrome extension communicate with Panel
Chrome Extension error: “Unchecked runtime.lastError while running browserAction.setIcon: Icon invalid."
Listen to Keyboard and Mouse Chrome Hosted App
Is it possible to catch requests from another extension?
getSelection fails on top commercial websites, how to unblock?
Chrome extension to capture video of last few minutes of active tab
when I click the input autocomplete suggestion,the extension popup disappears[close] [duplicate]
RequireJS not loaing JavaScript in Firefox WebExtensions add-on
Secure the communication between Chrome extension and the sever
Are these permissions mandatory in my Chrome extension?
How to catch/listen for notification with chrome extension?
Simulate Click on Chromebook