Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
Auto search from google after coverting speech to text javascript

After converted speech to text, text be on:$searchText and there is button by clicking button you search from google but i want it after cenverted a text it searchs automaticly without any buttons.

ex: after 3 seconds checks $searchText an if there is a text it search automaticly without button. help me i'm beginner :)

$button.addEventListener('click', () => {
if ($searchText.value !== '') {
var url = 'https://www.google.com/search?q=' + $searchText.value;
window.open(url, '_blank');
}
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have added an input box for simplifying. I believe you want something like this.

<!DOCTYPE html>
<html lang="en">
<body>
<!-- Your searchbox -->
<input type="text" id="searchText">

<script>
    let timerID = null;

    const $searchText = document.getElementById("searchText");
    $searchText.addEventListener('input', () => {

        clearTimeout(timerID)
        if (!$searchText.value) {
            return ;
        }

        timerID = setTimeout(() => {
            const url = 'https://www.google.com/search?q=' + $searchText.value;
            window.open(url, '_blank');
        }, 3000 /* 3 seconds */) 

    });
</script>
</body>
</html>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!