Search code examples
google-chrome-extension

How do I make an HTML file appear at my extension page?


How do I specify an HTML document as the page to pop up in chrome-extension://MYID? Here's what it looks like right now:

File Not Found

You can see there is no file there. Is there a way I can specify an HTML file to appear here?


Solution

  • Add an HTML document to the topmost directory of the extension, let's call it menu.html. Then add /menu.html to the end of that URL. This will then pop the page up. The extension://MYID is just a directory of the extension.