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

159
Vistas
How can I display a Search Result into an iframe? Cause I want to stay on the same URL when I click Submit Instead of Loading the Video on its own URL

So I have this code, and the function is Like a Search Box ,but if you put the exsact VIDEO ID, you will be Directed to the exsact VIDEO URL and you can play it. But.....

<input type="search" id="testSearch" class="Search" name="" value="" 
placeholder="VIDEO ID">
<button id= "search" onclick="search()" >Search</button>

<script>
function search() {
  var searchtxt = document.getElementById('testSearch').value
window.location.href = "https://mysiteurl.com/"+ searchtxt + ".html";
}
</script>

....how can I make the Video display on an Iframe Box in the same page without leaving the site so that if they want to watch another Video, They will just put again the exsact VIDEO ID on the Search Box and it will display again to the Iframe Box.

about 4 years ago · Juan Pablo Isaza
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