How to console log user inputs on Searchbar?

Appreciate any help or insight!

I’m trying to figure out how I can use custom code in Webflow to console log search inputs from the Webflow Searchbar element.

Any help would be much appreciated,
JP

Suggest you look at Introduction to events - Learn web development | MDN