Call unbind
using the beforeunload
event handler:
$('form#someForm').submit(function() {
$(window).unbind('beforeunload');
});
To prevent the form from being submitted, add the following line:
return false;
More Related Contents:
- Difference between .ajaxSubmit() vs .submit()
- jQuery Ajax POST example with PHP
- jQuery AJAX submit form
- jQuery load more data on scroll
- how to bypass Access-Control-Allow-Origin?
- How to generate a simple popup using jQuery
- jQuery has deprecated synchronous XMLHTTPRequest
- Parallel asynchronous Ajax requests using jQuery
- Why would multiple simultaneous AJAX calls to the same ASP.NET MVC action cause the browser to block?
- Access denied to jQuery script on IE
- How to upload a file using jQuery.ajax and FormData
- Ajax call Into MVC Controller- URL Issue
- How to wait until jQuery ajax request finishes in a loop?
- JQuery Ajax – How to Detect Network Connection error when making Ajax call
- How do I abort image load requests without using window.stop()
- Cross-origin resource sharing (CORS) concept
- jQuery AJAX polling for JSON response, handling based on AJAX result or JSON content
- How to load all server side data on initial vue.js / vue-router load?
- JQuery Ajax Post results in 500 Internal Server Error
- JQuery $.ajax() post – data in a java servlet
- AJAX Page Download progress
- values not updated after an ajax response
- Using jQuery AJAX to download a binary file
- How to post an image in base64 encoding via .ajax?
- Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)
- jQuery DataTables “No Data Available in Table”
- Set Request Header jQuery Ajax
- Ajax POST not sending data when calling ‘request.POST’ in Django view
- ‘append’ called on an object that does not implement interface FormData
- JQuery getJSON – ajax parseerror