scrollIntoView not working in IE8?

Hey all,

I working on a project for a client and I need a javascript event to fire the scrollIntoView method to pan the browser to a DIV element at the bottom of the page.

My function is as follows:-


function jumpToOtherProducts()
{
     var x = document.getElementById("product_canvas");
     x.scrollIntoView(true);
}

Ive tested this in FF, Chrome and Safari and works fine, but not IE8. Any ideas what I can do about this?

Kind regards and thanks!:slight_smile:

It should work. I tested it here: http://www.quirksmode.org/dom/tests/scrollintoview.html

But if you want it at the bottom of the page you should remove the “true” argument, as that will align it with the top of the page.

Thats great help, thanks so much !:slight_smile: