georgehdd
georgehdd

Reputation: 433

Is there a Chrome Extension API way to navigate to the homepage programmatically?

Is there a way in a Chrome Extension to programmatically do what the "Open the homepage" button does in Chrome and navigate to the homepage (or at least retrieve the homepage URL) ?

Upvotes: 2

Views: 232

Answers (1)

Xan
Xan

Reputation: 77531

A quick look through all available Chrome APIs shows that there is no such API method.

Some searching and testing suggests that there is no way to do that in Chrome with JavaScript in general, either.

So most likely you can't do this.


For the sake of logical completeness, your extension can override the homepage. However, if there are 2 extensions than do that the last installed wins, and you can't test for that.

Upvotes: 2

Related Questions