Can I scroll ScrollView programmatically to a specific position?

Safari Bookmark That Controls Scroll Position

  • In Safari 6, I have a folder of bookmarks on the Bookmarks Bar that I visit each day by right-clicking and choosing "Open in Tabs". I'd like one of those bookmarks to open to a specific vertical scroll position on the page in question. Is that do-able? I made an inept attempt at doing something via Javascript and found the scrolling to be inconsistent and that an empty, unnecessary tab was created. javascript:w=window.open("http://www.site.com/"); setTimeout(function() {w.scrollTo(0,1500)},10000);

  • Answer:

    I don't suppose the target page has an anchor where you want to scroll to?

boombot at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

You can use location.href instead of window.open so you won't get the extraneous tab. (Because you're selecting the menu item "Open in Tabs," you're already getting the fresh tab you need) I don't know about the scrolling part, though.

bcwinters

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.