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

161
Views
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
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!