Div Scroll To In Javascript
I have several divs with content. Some of the context is wrapped with, content cool content more content In Javascript how do I force the Som
Solution 1:
what about scrollintoview command? Not sure if thats IE specific.
document.getElementById("SomeName").scrollIntoView(true);
Solution 2:
You could set the Window Location to include the # anchor, and the browser will scroll to it.
Window.Location = "http://yourSite.com/YourPage.html#SomeName";
Post a Comment for "Div Scroll To In Javascript"