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

326
Views
How can i hide a preview of a video in html

I am kinda trying to build my first website atm. I was trying to create a button that would start a video if it was pressed (that already works), but i don't want a preview of the video if the button wasn't pressed. How can i hide the video before the button is being pressed?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Put a style='display: none' attribute in the video tag element. And then, in the botton's click handler, insert this document.getElementById("your-video-element-id").style.display = 'block'; in order to make it visible.

For a similar example look here: https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp

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!