WEb site need to stay there.

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
shajinvk
Forum Newbie
Posts: 4
Joined: Fri Mar 05, 2010 6:50 am

WEb site need to stay there.

Post by shajinvk »

I kno nobody will understand what i wrote on the subject field.. my requirement is,,,
consider my website is used for writing online exam,, and after the question is answereed the page must be in a center position .. and if we click next,after the page reloads the page starts from top.. i want to stay position of the page before refresh..
if u dont understand,and need to help me,,feel free to contact me @ shajinvk@gmail.com
solid
Forum Commoner
Posts: 28
Joined: Wed Aug 12, 2009 11:56 am

Re: WEb site need to stay there.

Post by solid »

It sounds like you should really be using AJAX. But a quick and dirty way of handling this would simply be to place anchors at each question like this:

Code: Select all

<a name="question1"></a>
Then have your php script redirect to the anchor that you are wanting, like this:

Code: Select all

header('Location: http://www.yourdomain.com/yourscript.php#question1');
exit;
Post Reply