time and search in google
This commit is contained in:
1 parent
38d566cc84
commit
8cf421b8c3
10 files changed
+106
-4
No files matched your search
@@ -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}`)
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user