Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

131
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda