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

127
Views
How to scroll top on an iFrame embedded in Wix

I have a serious problem with an iFrame embedded in a Wix page, my client is asking to not have to scroll up when you select the time you want to reserve on the restaurant:

1)Here is the first screen when you enter to the reservation apart in the website enter image description here

2)The hours are buttons that you select and all the content is gonna hide, and then the form appears to add your name, number, etc...

enter image description here

3)After you click it the content will show up but I want to appear at the top of the iframe, I don't want to scroll up manually

enter image description here

  1. This is where I want to be when I click the button hours

enter image description here

Here is a test website so you can see the problem live: https://marketing254641.wixsite.com/website/reservas

The problem is I can't play around with the HTML because the company has many many restaurants, so it's a template, what I can do is to inject javascript directly from the reservation system like this:

enter image description here

 <script>
let scrollTop =  document.querySelector(".tod");
scrollTop.onclick = () => window.scrollTo({ top: 0, behavior:"smooth" });
</script> 

All those hours buttons have this class, so I thought this function would be applied to all of them, but seems unresponsive, even in the inspect can't find the script...

I really would appreciate feedback from you, and also an advice, also wix is pretty mess up when its about iframe layout

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!