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!
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:
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:
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