Disable "Changes you made may not be saved" pop-up window
<p>I use the following frontend code to export a <code>.csv</code> document.</p>

<p><strong>HTML</strong></p>

<pre><code>  &lt;form id="tool-export" method="post" action="export/"&gt;{% csrf_token %}
    &lt;a id="export-link" class="btn btn-sm btn-primary" href="#"&gt;DOWNLOAD&lt;/a&gt;
  &lt;/form&gt;
</code></pre>

<p><strong>JS</strong></p>

<pre><code>  $('#export-link').click(function(e) {
    e.preventDefault();
    var link = $(this);
    var form = link.closest('form');

    var project_id = proj_id.find(":selected").val();
    var input = $('&lt;input&gt;').attr('type', 'hidden').attr('name', 'project_id').val(project_id);
    form.append($(input));

    var project_type = proj_type.val();
    input = $('&lt;input&gt;').attr('type', 'hidden').attr('name', 'project_type').val(project_type);
    form.append($(input));

    form.submit();
  });
</code></pre>

<p>Export works well and I get the correct document. But also I receive the <strong><em>Changes you made may not be saved</em></strong> message after clicking on the export link. How to disable this message? I don't want to see it.</p>

<p><a href="https://i.stack.imgur.com/8Wnj4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8Wnj4.png" alt="enter image description here"></a></p>