Can I force the browser to scroll to the bottom of a page?

Heloo.

I would like to bookmark a page such that the browser automatically scrolls to the bottom of it after loading.  The trick is that I do not control the page I am bookmarking -- I simply visit it each day, scroll to the bottom, read a few things, then close the page.

I want to bookmark the page, similar to www.blahblah.com#bottom.  Of course, as stated, there is no named anchor "bottom" and I cannot add one, since I am not the author of the page.

As a valid example, I would like to bookmark page http://www.jetbrains.com/idea , but have the browser automatically scroll to the bottom after loading.

Thank you.
LVL 3
ForceRsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimYatesCommented:
I don't believe this is possible...

I may be wrong though...but I think you may fall foul of cross site scripting security issues...

Tim
0
Saqib KhanSenior DeveloperCommented:
What you need is an anchor <a name="bottom"> at the end of your code(Page).  Then <body onload="self.location.hash='bottom'>.
This should work for all browsers.
0
Saqib KhanSenior DeveloperCommented:
sorry i misread the post, disregard my Comment.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

mvan01Commented:
When you open a page without the filename, you're most likely opening index.htm or index.html.  In your example above, you're opening:

http://www.jetbrains.com/idea/index.html

(found by trial and error)  Usually you can find the filename exactly by navigating around the site, clicking on a 'home' link, etc.

Next, you need an anchor.  As you said, you can't 'write' one, but you can look to see if one exists.  With the page loaded, from the browser menu (or right-click menu) choose view source.  Scroll to the bottom of the source.  Look for a span or div with an id= statement.  In your example page above, I found:

<div id="footer">

Now, just add that to your url, your intuition was right:
http://www.jetbrains.com/idea/index.html#footer

Granted, it only works if such a construct already exists in your favorite page.  Happily, in many, it does!

Peace and joy.  mvan
0
ZvonkoSystems architectCommented:
What you ask for is called bookmarklet.
But it cannot work the wey you ask because of this words: "...after loading."
After window loading is your window script stack cleared.
This will NOT work:
javascript:void(location.href='http://www.jetbrains.com/idea');void(setTimeout('scrollTo(0,90000)',3000))




0
ForceRsAuthor Commented:
mvan01, thanks -- very close, but the page I want to bookmark does not contain an appropriate <div>.

Here is a better sample page: http://bugzilla.ximian.com/buglist.cgi?product=Evolution&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&target_milestone=2.1&priority=Normal
0
mvan01Commented:
Hi ForceRs,

Given your example, I find there's a

name=buglist

and

name=id

in the final constructs of the page.  Either of those worked for me, as in:

http://bugzilla.ximian.com/buglist.cgi?product=Evolution&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&target_milestone=2.1&priority=Normal#buglist

I think this is the best we can do.  If an id= or a name= , you can attach that label to your url with a pound sign, and it will scroll to there.  If you find one near the end of the page, it will open at that location, near the end of the page.

Peace and joy.  mvan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ForceRsAuthor Commented:
Thank you.  This works great in Internet Explorer, but does not in Firefox.  I know that fireFox is super picky about these things, so this is as good as it gets.  

Thank you again!
0
ZvonkoSystems architectCommented:
You are welcome.
0
ZvonkoSystems architectCommented:
Uhps :)
0
mvan01Commented:
You are welcome, too. :-)  Peace and joy.  mvan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.