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

88
Views
Detect scrolling in embedded PDF

On my page I have an embedded PDF file and I want to detect if the user scrolled at least once to make a continue button visible. I tried a few things the came to my mind, namely:

Putting the onscroll event into the HTML

<object data="flgs/EUW/EUW.pdf#zoom=38&toolbar=0&navpanes=0&scrollbar=0&view=fit" 
type="application/pdf" width="60%" height="60%" onscroll="PDF()" style="position:relative; right:20%; left:20%;">
</object>

In JS

document.getElementById('PDF').addEventListener('scroll')

$('#PDF').on('scroll')

and $('#PDF').scroll()

All three of those are different examples I tried and not in the same script at once. Is there a way I can detect whether the user scrolled in the PDF or not?

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!