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

    Is it possible to place X on my form that will act as closing button?

    Asked by semcodist on October 20, 2016 at 05:56 PM

    2. Can I put an X on the top right of the form to close the window?

    place x close button form
  • Profile Image
    JotForm Support

    Answered by Nik_C on October 20, 2016 at 06:16 PM

    You can try inserting the below HTML in your form's code:

    <input type="button" value="Close this window" onclick="self.close()">

    If that doesn't work, please try with this JavaScript code:

     

    Step One: Insert the following lines of code into the head of your HTML page.

    <script language="javascript" type="text/javascript"> 

    function windowClose() { 

    window.open('','_parent',''); 

    window.close();

    </script>

     

    Step Two: Insert the following line of code into the body of your HTML page.

    <input type="button" value="Close this window" onclick="windowClose();">

    You will have to copy that code in code of your website.

    More information you can find on this link.

    If you have additional questions please let us know.

    Thank you!