Chrome. Windows. Create Help

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

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

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.