chrome.windows.create help

How would I open a local html file that is located within a chrome.windows.create? also, is it possible to make the chrome.windows.create non scrollable, no toolbars, etc?

1

2 Answers

What about:

chrome.windows.create({url: "local.html", type: "popup"}); 

I think it should understand local path, if not then:

chrome.windows.create({url: chrome.extension.getURL("local.html"), type: "popup"}); 
6

The question includes an "etc." that might mean you want no title bar for the window. If so, the answer is that it cannot be done. According to , there is no way to eliminate the title bar (probably to prevent phishing and other fraud). This was not the answer I wanted, since I wanted to write an extension to display a tiny digital clock, but I think it is true: a tiny popup digital clock extension is impossible. An attempt to set an option called "frame" to "none" only generates an error message.

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like