'Chrome/Javascript: How to trigger mouse-event via console manually

What I want:

Going on amazon.com typing in search "a book about 42" and then, without pressing enter or clicking on search-button, I want to start the search via javascript in chrome console.

How can I do it?

I'm aware of the possibility to set breakpoints at specific events (e.g. mouse-click event) and to debug. Even though a lot of code is uglified and I don't know how to catch the event, I want to trigger.

Your help is appreciated. Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source