Link to another file in chrome extension
Posted
by Hintswen
on Stack Overflow
See other posts from Stack Overflow
or by Hintswen
Published on 2010-02-05T14:55:16Z
Indexed on
2010/04/03
18:03 UTC
Read the original article
Hit count: 309
google-chrome
|extensions
I want to have a link in the popup.html file for my extension that loads another file (which will be included with the extension) how can I do this? or will I need to keep it in the same page?
I tried using this code:
<a href="/mail.html">
<img id="newmail_icon" src="" width="16" height="16" />
<span id="newmail">loading</span><br />
</a>
But when I click the link nothing happens.
I just found out that adding target="_blank"
to the link will make it work and open in a new tab, but I can't get it to open in the popup. I have tried target="_self"
but it didn't do anything.
© Stack Overflow or respective owner