472,121 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

replacement for IE's scrollIntoView() method in Mozilla

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
3 2751
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
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
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.

Similar topics

16 posts views Thread by Java script Dude | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.