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

Categories

HOME
ms-access
smarty
electron
rubygems
datastax-java-driver
directx
portia
primary-key
communication
metatrader4
commonmark
jsprit
ghc
finite-automata
reactcsstransitiongroup
sms-gateway
beyondcompare
textfield
mps
one-to-many
buildbot
bootstrap-duallistbox
rst2pdf
fopen
windows-error-reporting
strncpy
publish
objectanimator
noraui
hot-module-replacement
neuroscience
xenforo
az-application-insights
temporary-files
preconditions
sfdc
nomethoderror
midl
heightmap
reactive-cocoa-5
thin
sas-jmp
auto-update
scrollable
appcompat
azure-application-gateway
komodoedit
pebble-watch
integrity
colorama
knockout-components
knpmenubundle
flutterwave
mediaelement
medium.com
static-ip-address
angular-cache
gridpane
removechild
ios4
rhino-servicebus
tform
cloudbees
ford-fulkerson
r-tree
reactive-banana
ruby-2.2
method-parameters
sonarqube5.1.2
sorl-thumbnail
phalanger
bitcoinj
google-reader
doskey
mechanize-ruby
jboss-weld
gridfs
spring-io
gwt-rpc
mylyn
seed
ember-app-kit
runas
manchester-syntax
appconkit
online-compilation
reddot
cufon
work-stealing
whoosh
xtype
self-extracting
krl
routedevent
multi-tier
data-driven
msdev

Resources

Encrypt Message