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

135
Views
How to position window.parent scrollbar to the selected element position

Hi Using iframe I'm calling my angular project inside the ColdFusion Project. Im displaying the table in angular when I'm selecting any TR I will open a div over the table. at that time I can able to scroll outer scroll which is in coldFusion side. my requirement is when I close the div I want to go back to the position of outer scroll to the position of TR where I clicked.

 positioningAccordian(id: any): void {

    setTimeout(() => {

      const element = document.getElementById(id);

      element ? window.parent.scrollTo(0, element.offsetTop) : null;

    });

  }

The parameter id is the id of TR. My requirement is to restore the position of parent scroll to its position where it was before opening a div.

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!