It would be really great if Chromium exposed an API for Omnibox adding
window.onomniboxchange and
window.onomniboxenter events.
That could be something like the following:
[
ConstructorTemplate=Event
] interface OmniboxEvent : UIEvent {
[InitializedByEventConstructor] readonly attribute DOMString text;
void initOmniboxEvent([Default=Undefined] optional DOMString type,
[Default=Undefined] optional boolean canBubble,
[Default=Undefined] optional boolean cancelable,
[Default=Undefined] optional DOMWindow view,
[Default=Undefined] DOMString text);
};
Maybe there should be a special meta tag defining omnibox keyword (which is used as prefix).
This feature in future will allow to remove search bars from top of the pages on sites like Google and Facebook, providing a simpler and cleaner look.