Hey all, I was hoping someone could help me with my situation. I have a page where I am using javascript to populate a div using the onClick method. So bacically you have like 'terms A', 'terms B', 'terms C' and if you click on them the <div id=term></div> will populate with a javascript string using the .innerHTML method.
My problem is if the div is so long that it has verflow, therefore has a scroll bar. Say the user has click 'terms A' and scrolled to the bottom of the div then clicks 'terms B'the div still stays scrolled to the bottom (assuming terms B content has overflow too). I need to have the div scrolled to the top. Does anyone have code that can do this or point me in the right direction?
I know I can use an iframe but i want to keep everything in one page.
Thanks peeps!
- Shu
My problem is if the div is so long that it has verflow, therefore has a scroll bar. Say the user has click 'terms A' and scrolled to the bottom of the div then clicks 'terms B'the div still stays scrolled to the bottom (assuming terms B content has overflow too). I need to have the div scrolled to the top. Does anyone have code that can do this or point me in the right direction?
I know I can use an iframe but i want to keep everything in one page.
Thanks peeps!
- Shu