surfx / public /static /index.js
neon_arch
initial commit
15fc415
raw
history blame
223 Bytes
let search_box = document.querySelector('input')
function search_web() {
window.location = `search?q=${search_box.value}`
}
search_box.addEventListener('keyup', (e) => {
if (e.keyCode === 13) {
search_web()
}
})