javascript button position(x and y coordinates)
Hi everyone,
Is it possible to find the postion of a button on a page (x and y coordinates).Is there any function in the javascript to do that.
What i am trying to do is i have a form and a tabular form on a page.But that form has more than 80 items .On the same page i have created a tabular form so its some what big page users have to scroll down to see the tabular form.But everytime when the user adds a record to the tabular form scroll bar goes to top of the page .They have to scroll down to add another record.In javascript we have a
scrollto(x cord,y cord) . i am trying to find is there any built in function to find the coordinates of a button and then i can pass those values to the scrollto(x,y).
Please give me some suggestions.
Thanks
phani