How to empty a searchbox when user scrolls the page?

I have a navbar where I hjjave applied searchbox … I want the searchbox to get empty when the user scroll the main page. is there any property for this? I know we have a onReset but I want to clear search on Scroll. Help needed please