Reputation: 44852
I'm developing a chrome extension and I've got my popup.html which is a login page. I'm wondering.. how would I (on successful login) redirect to a new html page (which is loaded in the area where popup.html
was?) e.g When the user clicks the extension icon, popup.html
comes up in the box, on successful login that box changes to a new html page other than popup.html
.
How would I do this?
Upvotes: 14
Views: 12322
Reputation: 111285
To permanently change a popup while it is closed:
chrome.browserAction.setPopup({popup: "new.html"});
If you want to temporary change a popup while it is still open:
window.location.href="new.html";
Upvotes: 22