javascript - Chrome extension : open a link from popup.html that replaces the popup -


i apologize if question has been answered somewhere in website, i'm having troubles seems easy do.

i have popup.html displays little menu 3 elements inside. 1 among them "enable". want when click on replaces current popup.html popup displays else.

i've heard window.location.href= can't make work

here's manifest.json

here manifest.json

{ "name": "e-kootsa", "version": "1.0", "manifest_version": 2, "description": "ce plugin vous permet d'écouter le texte d'une page", "browser_action": {     "default_icon": "icon.png",     "default_popup": "popup.html" }, "options_page": "options.html" } 

here popup.html

<!doctype html> <html> <head> <meta charset="utf-8" /> <style type="text/css"> body{     margin: 0px;     padding: 0px;     font-family: arial, sans-serif;     font-size: 20px;     width: 200px; } .selection{     text-align: center;     margin-bottom: 5px; } .global{     padding-top: 5px; }  a{     text-decoration: none;     color: #000; }     </style>     </head>     <body>     <div class="global">     <div class="selection"><a href="options.html" target="_blank">paramètres</a></div>     <hr />     <div class="selection" id="clickme"><a href="#">activer</a></div>     <hr />     <div class="selection"><a href="about.html" target="_blank">À propos</a>        </div> </div> <script type="text/javascript" src="popup.js"></script> </body> </html> 

my "test" popup show contains "test" in , called popup2.html

any idea ? in advance !


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -