What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How to avoid the lightbox code from jumping to the top of the page.

    Asked by phoebeseward on June 23, 2015 at 06:53 PM
    Also: the images that link to the forms are in the middle part of the page, and when a form lightbox is opened & then closed, it returns to the page, but to the top of the page. In other words, someone looking at the page would click an image for the lightbox to open to learn more information, then X out of the form and need to scroll back down again. Is there a way to fix this so that once they X out they are exactly in the same position on the page as they were when they opened the lightbox?
  • Profile Image
    JotForm Support

    Answered by BDAVID on June 23, 2015 at 07:01 PM

    Please try removing the number 2 in your lightbox embedded code:

    <script src="https://secure.jotform.com/static/feedback2.js?3.3.7626" type="text/javascript">

    var JFL_51732076637155 = new JotformFeedback({



    windowTitle:'Equitable Distribution &amp; Divorce Appraisals',










    Then save, let us know what happens.

  • Profile Image

    Answered by phoebeseward on June 23, 2015 at 07:20 PM

    This seems to do the trick and solve the problem of the page jumping back to the top once the lightbox is Xed out.  


    However, now other images that are on the page but are not linked to a form do not load / have disappeared.

  • Profile Image
    JotForm Support

    Answered by BDAVID on June 23, 2015 at 07:53 PM

    I think the DOCTYPE declaration in your page should be updated from this:

    To this one:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 

    Just to let you know, when your Lightbox script source doesn't have "2" after feedback, it means you are using the prototype script. I think you might need to deal with  prototype and jQuery conflicts: http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/

    Let us know what happens, we will be glad to assist you.