Yogesh's Blog

Sharing me with blog…
Archive for May, 2012

If looking simple way to scroll a page to specific part of page i.e. specific DOM element, here is the simple way. Support you have a DOM element like: <span id=”scrollHere”></span> With window load or specific click on button/link, use following javascript statement: Syntex: window.document.hash = “#<d_of_dom_element>”; Example: window.document.hash = “#scrollHere”