Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To change the popup html page you can use </p> <pre><code>chrome.browserAction.setPopup </code></pre> <p>more detailes on this page <a href="http://developer.chrome.com/extensions/browserAction.html" rel="nofollow">http://developer.chrome.com/extensions/browserAction.html</a></p> <p>you can do something like this: </p> <p>in html:</p> <pre><code>&lt;a onclick="changePopup();" href="#"&gt; change popup&lt;/a&gt; </code></pre> <p>in js:</p> <pre><code>function changePopup(){ chrome.browserAction.setPopup({ popup:"second_page.html" }); } </code></pre> <p>You didn't specified where is the link placed? in the popup page or in an html page, so I assumed the linked is placed in popup html page.</p> <p>If the link is placed outside extension, you should use Content Scripts <a href="https://developer.chrome.com/extensions/content_scripts.html" rel="nofollow">https://developer.chrome.com/extensions/content_scripts.html</a></p> <p><strong>UPDATE:</strong> You should put the java-script file in your manifest.json using background pages or event pages depending on what you need. </p> <p>Here you can find more info:</p> <p><a href="https://developer.chrome.com/extensions/background_pages.html" rel="nofollow">https://developer.chrome.com/extensions/background_pages.html</a></p> <p><a href="http://developer.chrome.com/extensions/event_pages.html" rel="nofollow">http://developer.chrome.com/extensions/event_pages.html</a></p> <pre><code>.... "background": { "scripts": ["background.js"] }, .... </code></pre> <p>If you loaded the javscript file from your html page using the <code>&lt;script&gt;</code> tag , you should use the Message passing api : <a href="http://developer.chrome.com/extensions/messaging.html" rel="nofollow">http://developer.chrome.com/extensions/messaging.html</a> to interact with your html.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload