Help-internal research using js

Hi, does anyone know how to create an internal search in my website. Basically, I got some photos and I would like to access directly on my search bar via the website. I heard that you can use google like on w3 school’s search bar