time and search in google

This commit is contained in:
wt committed 2024-05-28 10:08:26 +07:00
1 parent 38d566cc84
commit 8cf421b8c3
10 files changed
+106 -4

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
const searchinput = document.querySelector('#search-in-google')
searchinput.addEventListener('keydown', (e) => {
if (e.keyCode === 13) {
e.preventDefault()
let searchvalue = searchinput.value
window.location.replace(`https://google.com/search?q=${searchvalue}`)
}
})