reset input field when page is refreshed

hi how is everyone doing i have a seach bar on my website and i need it to refresh the inputs on the search bar when the page is refreshed, right now it saves the last search and keeps it in the input , i just want the search bar to clear when the page is refreshed thanks!!

https://www.wix.com/corvid/forum/community-discussion/reload-page-and-clear-reset-filters

hi thanks so much for the link, but i dont want a button to reset my search bar i need it to do it every time the page is refreshed so the search bar is empty when the page is refereshed thanks

any help would be great thanks

i tried to add this to my code under the on ready fucntion to try and reset the search bar on refresh but that didnt do anything, i just need the search bar to be cleared when the page is refreshed thanks

$w(“#myDataset”).setFilter( wixData.filter() );

You’re part-way there. You are correct that you need to clear the filter. All that’s left is to clear the element values in the search bar, also in the onReady() function.

ok great thanks and how to i accomplish clearing the values in the search bar thanks for the help !!!