Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6218719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:39:33+00:00 2026-05-24T07:39:33+00:00

Surely there is an easy way to do this. I need to load a

  • 0

Surely there is an easy way to do this. I need to load a page in a java script popup window. But the content I need to show in the window are a ways down the page. Is there a way to jump to that part of the page? (So jump to a vertical scroll coordinate?) (Also, I cannot edit the page which is being shown. Merely the link to it)

Any help is much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:39:34+00:00Added an answer on May 24, 2026 at 7:39 am

    Assuming you can’t link to anchors but the page you load into the popup is in the same domain you could use something like this:

    1. load the popup
    2. set the onload event for the popup to scroll after it has been loaded
    3. the popped up page will scroll down after it has been loaded

    You may want to customize this, e.g. you could provide an additional parameter to openInPopUp() with the exact position to scroll to.

    Here’s the The Code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html>
        <head>
    
            <script language="javascript" type="text/javascript">
              function openInPopUp(link) {
                // (1) load the popup
                newwindow = window.open(link.href, 'name', 'height=300,width=200,resizable=1,scrollbars=1');
    
                // (2) set the onload event
                newwindow.onload = function() {
                    scrollDown();
                };
    
                return false;
              }
    
              function scrollDown(){
                // (3) scroll down
                newwindow.scrollTo(0, 200);
              }
            </script>
            <title></title>
        </head>
        <body>
            <p>
                <a href="popup.html" onclick="return openInPopUp(this)">open link to popup and scroll down</a>
                <br/><br/>
    
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum<br/>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum<br/>
    
            </p>
        </body>
    </html>
    

    If you want to load content from another domain, than the calling page, this won’t work but end in a permissions error.

    Details for the scrollTo function

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Surely there is a better way to do this? results = [] if not
Surely there must be a way to do this... I can't work it out.
This seems like a no brainer but surely there is either an internal js
This will surely be an easy one but it is really bugging me. I
Surely there is a way to store a date value prior than 1-1-1900 in
Surely there is some kind of abstraction that allows for this? This is essentially
Surely this is possible? I have been hunting through PyQt tutorials and documentation but
I have coded the next function. But surely someone has a more elegant way
Is there an easy way to change $month = July; so that $nmonth =
This might sound crazy but is there a debugger out there which automatically breaks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.