This is probably a very big oversight on my end, but I have added a search-bar to my website, and when you click it, the border style changes to a black and white border, I don't want it to do that. I would like the border to stay the same on click of the search-bar. Thanks.
let searchBar = document.querySelector('.searchBar');
let alertOnce = 0;
searchBar.addEventListener("click", () => {
  alertOnce++;
  
  if (alertOnce == 1) {
    alert("note, you can't have multiple words.")
  }
})<input type="search" placeholder="" class="searchBar" /> 
     
    