make iphones jump to a section on a page when it's loaded?

Joined
12 Feb 2006
Posts
17,380
Location
Surrey
i have a quote form which you can view below. customer enters details and then it calculates the total and shows them a price.

on android i don't notice and issue, but for iphone customers they often find when the click calculate total, the page loads the total section, but doesn't load from the top but where they were when they click "calculate total" so the bottom of the page, so they miss the totals and are now displayed with "book quote" which they are clicking incorrectly thinking this shows the quote.

how can i make it so that the page is forced to either go to the top when it loads, or jump to a section?

if you want to see for yourself you can below:

https://www.mayercleaning.co.uk/online-quote/?service=oven
 
anyone here with an iphone able to confirm that once they get a quote, that they aren't jumped to the top of the page to view it but instead remain at the bottom and have to scroll up to see the total section?

it's once you click "calculate total"

the next page shows the price, and a "book now" button. dont click that but if anyone would be kind enough to report back the scroll position of the page once it loads.

i've tried a few online sites but i can't get it to do what customers say it does on iphones.
 
just place the id of the element you want the page to show at the end of url, preceded by a hash (#).

E.g.:

Code:
<form id="lol"><!-- some gubbins goes here --></form>

Then link to your page with: http://yourhost/your.page#lol

et voila.

i've added this, though only locally, as felt it was probably the simplest option, however it only seems to work when the page is something like website.com/index.php#lol, and not just website.com/#lol

any thoughts?
 
Back
Top Bottom