Chris G
Chris G

Reputation: 469

Event when a user tries to navigate to a new URL via Chrome Extensions?

Basically, I want to make a chrome extension that reads the URL bar upon the user hitting enter and redirect them based on the contents.

Anyone know how to do this?

I'm reading through the API but can't find a method to read the URL on enter?

Upvotes: 0

Views: 316

Answers (1)

joseeight
joseeight

Reputation: 924

You are looking for the WebRequest API. You can intercept changes based on all possible request resolve events in any window. See the documentation for details, but should be all you need.

Upvotes: 1

Related Questions