focus on tablerow

J

Jan Eliasen

Hi

I am trying to get the browser to move to a specific place in an html
page when a link is clicked in an image map. When the image map is
clicked, a javascript function is called, which makes a row in a table
visible, and I would then like to move the page to this row, so the
user can see the row.

Take for instance a look at http://www.eliasen.dk/oio/da/Address.html

If you click on "AddressFormatCode" in the image map (number three
from the top), a row gets visible further down the page, where you can
not see it. But I need to make the row visible AND get the user down
to the row.

row.focus() doesn't seem to work :-(

Any thoughts?

--
eliasen, representing himself and not the company he works for.

Private blog: http://blog.eliasen.dk

Private email: (e-mail address removed)
 
S

scripts.contact

Hi

I am trying to get the browser to move to a specific place in an html
page when a link is clicked in an image map. When the image map is
clicked, a javascript function is called, which makes a row in a table
visible, and I would then like to move the page to this row, so the
user can see the row.

Take for instance a look athttp://www.eliasen.dk/oio/da/Address.html

If you click on "AddressFormatCode" in the image map (number three
from the top), a row gets visible further down the page, where you can
not see it. But I need to make the row visible AND get the user down
to the row.

row.focus() doesn't seem to work :-(

scrollIntoView method [ element.scrollIntoView(alignWithTop) ] :
http://developer.mozilla.org/en/docs/DOM:element.scrollIntoView
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top