By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,288 Members | 1,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,288 IT Pros & Developers. It's quick & easy.

replacement for IE's scrollIntoView() method in Mozilla

P: n/a
Hi to all,

I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?

ref:
http://msdn2.microsoft.com/en-us/library/ms536730.aspx
http://groups.google.com/group/comp....063f68af40ee7b

Thanks.

Jul 25 '07 #1
Share this Question
Share on Google+
3 Replies

P: n/a
kai
On Jul 25, 12:39 am, sylver <gamergemp...@gmail.comwrote:
Hi to all,

I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?

ref:http://msdn2.microsoft.com/en-us/lib...wse_thread/thr...

Thanks.
scrollIntoView works in Mozilla and Safari. I believe its part of DOM
level 2, http://developer.mozilla.org/en/docs...scrollIntoView

Jul 25 '07 #2

P: n/a
On Jul 25, 1:39 am, sylver <gamergemp...@gmail.comwrote:
Hi to all,

I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?
you can use it in Mozilla (and opera..) but you have to specify the
parameter:
e.scrollIntoView(1)
Jul 26 '07 #3

P: n/a
On Jul 26, 1:40 am, "scripts.contact" <scripts.cont...@gmail.com>
wrote:
On Jul 25, 1:39 am, sylver <gamergemp...@gmail.comwrote:
Hi to all,
I found out the you can use the scrollIntoView() method, to scroll an
element (ie: a <divwith lots of content that it overflows) to its
bottom / last line. But this only happens in IE. Does mozilla have any
methods that do the same? Or is there any hacks algo we can try to
perform this for Mozilla?

you can use it in Mozilla (and opera..) but you have to specify the
parameter:
e.scrollIntoView(1)
The parameter is optional. If true, it aligns the element to the top
of the container. The default is to align with the bottom.

Jul 26 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.