How to return to top of page after sending a contact form

  • Profile Image
    stealexander
    Asked on February 14, 2013 at 04:09 PM

    Hello,

     

    I would like to be able to return to the top of our web page after a client completes and sends the contact form. How can this be done.

     

    Thank You

    Alexander Stewart

  • Profile Image
    Mike_T
    Answered on February 14, 2013 at 05:30 PM

    Thank you for contacting us.

    As far as I can see, you are using the iFrame embedding code, and your form is properly scrolling to the top of the page.

    Please let us know if there are any other issues.

  • Profile Image
    stealexander
    Answered on February 15, 2013 at 04:18 AM
    New response receivedWhat I meant was that after hitting the "Soumettre" button (submit) the client has to scroll manually to the top of the page to see the message that his (or her) request was sent. I don't want to include a thank you message in the contact form, too many emails circulating.
    Is there a way to automatically go back to the top of the page after the submit button is hit?
    Actually my code is Thanks,
  • Profile Image
    abajan
    Answered on February 15, 2013 at 08:42 AM

    As happened with my colleague, the page automatically scrolled to the top after I submitted your form:

     

    In which browser are you not experiencing this behavior?

  • Profile Image
    stealexander
    Answered on February 15, 2013 at 12:00 PM
    New response receivedStrange, on my computer with Windows XP and IE 8 the page does not scroll to top of page. I did not have the opportunity to try it on my laptop with Windows 7 and IE 9.
  • Profile Image
    stealexander
    Answered on February 15, 2013 at 12:00 PM
    New response receivedI just tried on my laptop using Firefox and the page does not scroll to top after submission.
  • Profile Image
    moonzkie
    Answered on February 15, 2013 at 01:42 PM

    Hi,

    I have just tested your form on Windows XP using IE 8 so with Firefox and was also not able to replicate on the problem. I have cleared your forms cache, can you please check if this worked? Also, please try to clear your browser's cache.

    Thank you.

  • Profile Image
    stealexander
    Answered on February 16, 2013 at 04:34 PM

    I cleared my browser's cache (IE 9) in Windows 7 and it still doesn't work. I will try in IE 8 and Windows XP when I get back home to see what happens. I'm quite sure it will not work either. I think we will just have to live with the situation. Thank you very much.
    Date: Fri, 15 Feb 2013 13:42:46 -0500
    To: alexanderstewart@sympatico.ca
    Subject: Re: How to return to top of page after sending a contact form
  • Profile Image
    stealexander
    Answered on February 18, 2013 at 10:12 AM
    New response receivedI found the culprit on my Windows XP computer, javascript was disabled in IE 8, I'll have to check on my laptop with Windows 7 and IE 9 to see if javascript is disabled.
    Thanks again.
  • Profile Image
    abajan
    Answered on February 18, 2013 at 10:35 AM

    That's the only reason I could think of that would cause the "return-to-top" functionality not to work but it would be rather unusual for JavaScript to be simultaneously disabled in so many browsers when it's normally enabled by default. Perhaps that's why none of us suggested that that could be the cause.

    By the way, here's a page to quickly test if it's enabled. You should see a green YES as the answer to the question: "Is JavaScript Enabled?". If you see a red NO, it's disabled. Please see this page.

    Thanks.

  • Profile Image
    abajan
    Answered on February 18, 2013 at 10:44 AM

    Actually, those are some rather old browsers at that Wiki link! I'll see if I can find a more up to date one.

  • Profile Image
    stealexander
    Answered on February 18, 2013 at 10:58 AM
    New response receivedI met a our tango dancers this weekend at our dance evening and those who had used the contact form said that the screen went to the top after hitting the submit button. The problem was on my computer (Windows XP and IE 8). I tried it on my laptop (Windows 7 and IE 9) and it still doesn't work. I looked for the settings to enable javascript but didn't see anything so I suppose it's enabled by default, maybe IE 9 is not configured correctly in the laptop.
    Thanks,
  • Profile Image
    Welvin
    Answered on February 18, 2013 at 01:26 PM

    Here's guide to Enable Javascript: Enable JavaScript in the most popular web browsers. This includes checking wether your browser have Javascript Disabled/Enabled.

     

    Thanks