making web page scroll down on button click

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

making web page scroll down on button click

Post by sheikhmdirfan »

Hello everyone,


I have a webpage which has 2 tables one of them is visible and others display property is set to none i.e. its kept as invisible..

now on a click of a button i am making the second table to appear on the web page..
but i have to scroll down to see the second table..

Now what i want is that after making the second table visible the web page should scroll down to the secomd table so that it is fully visible...

Any help is highly appreciated..

Thanks in advance..
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: making web page scroll down on button click

Post by juma929 »

Hello,

Without seeing the exact situation its hard. Have you tried page anchors to just above where the table appears? Alternatively you can use javascript to control the scroll and send it to the position you need.

Thanks.
Post Reply