harry wrote:

Heikki Toivonen wrote:

As the subject says, if I have a DOM node, is there any way I can scroll to the node with JavaScript? Meaning, if the node is not visible in the window
I want the window to scroll so that the node becomes visible.

For element nodes there is
  element.scrollIntoView(true)
or
  element.scrollIntoView(false)
implemented in Mozilla, following IE's implementation
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/scrollintoview.asp>

--

        Martin Honnen
        http://JavaScript.FAQTs.com/
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to