I added a button(web item) to the search question page, but I couldn't do it by injecting JS binding buttons
This is a screenshot of the item I added

this is my js script
$("key1").on("click",function(){
alert('call me');
});
When I click that button, it just refreshes the page. Can anyone help me, thank you