Locating on a particular div using jquery

by barkkathulla 2013-10-03 11:11:06

The following are the methods to point a cursor position in a particular HTML part..


1.Hash method:
window.location.hash = '#review';



2. scrollIntoView() method:
document.getElementById('review').scrollIntoView() works.
This is better than window.location.hash when we have fixed positioning in our page.



This method can be used while error alerts,focusing particular html in a certain events etc...
822
like
0
dislike
0
mail
flag

You must LOGIN to add comments