How to move the scroll bar by java script functionHow to move the scroll bar by java script function
Some time user want to shift the scroll bar when the page render infront of the user.
You can do that by using the java script.By following the below code.
<script language="JavaScript">
function func()
{
window.scrollTo(100,100);
}
function function1()
{
window.scroll(500,500);
}
</script>
<input value="Scroll(100,100)" onclick="func();" type="button">
<input value="Scroll(500,500)" onclick="function1();" type="button">
Keep coding.....