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

136
Views
browser won't remember user interaction when going between local websites

I am making a website with a video that I want to autoplay with sound. On most websites, if you click a link to another part of the site it remembers the user interaction and allows autoplay. However, right now it is local (aka the url is C:\\ ...), so going between 2 different .html files makes the browser reset its user interaction check.

Is there any way to fix this without placing my entire site online?

minimum reproducible example:

link.html:

<!doctype html>
<html>
<body>
<a href="file:///C:/ ... /mainSite.html">Click to go to other site</a>
</body>
</html>

mainSite.html:

<!doctype html>
<html>
<audio id="player" autoplay controls>
    <source src="https://www.appsloveworld.com/wp-content/uploads/2018/10/640.mp4" type="video/mp4">
</audio>
</body>
</html>

NOTE: it should work like so:

User goes to link.html, clicks it and gets redirected to mainSite.html. The browser remembers user clicking link in link.html, and since both sites are from the same source, (my pc), the audio autoplays.

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!