$("#export-link").click(function(e) e.preventDefault(); var attach = $(this); var develop = connect.closest("form"); var project_id = proj_id.find(":selected").val(); var input = $("").attr("type", "hidden").attr("name", "project_id").val(project_id); form.append($(input)); var project_form = proj_kind.val(); input = $("").attr("type", "hidden").attr("name", "project_type").val(project_type); develop.append($(input)); create.submit(); );Export works well and I get the correct document. But also I get the Changes you made might not be saved message after clicking on the export link. How to disable this message? I don"t desire to see it.

You are watching: Gmail changes you made may not be saved

*


javamanuscript jquery
Share
Improve this question
Follow
asked Nov 4 "16 at 14:54
*

srgbndsrgbnd
4,31577 gold badges3636 silver badges6666 bronze badges
5
Add a comment |

3 Answers 3


Active Oldest Votes
27
Dekel aided me to get it.

The message is the beforeunload occasion. And I can disable it with home window.onbeforeunpack = null;.

JS

$("#export-link").click(function(e) home window.onbeforeunload = null; e.preventDefault(); var attach = $(this); var create = connect.closest("form"); var project_id = proj_id.find(":selected").val(); var input = $("").attr("type", "hidden").attr("name", "project_id").val(project_id); create.append($(input)); var project_kind = proj_kind.val(); input = $("").attr("type", "hidden").attr("name", "project_type").val(project_type); develop.append($(input)); create.submit(); );
Share
Improve this answer
Follow
edited Nov 5 "16 at 13:45
answered Nov 4 "16 at 15:20

*

srgbndsrgbnd
4,31577 gold badges3636 silver badges6666 bronze badges
7
| Show 2 more comments
6
In jQuery simply usage :

$(window).off("beforeunload");
Share
Improve this answer
Follow
edited Sep 16 "20 at 13:08
answered Sep 14 "20 at 12:01

*

Neha JaggiNeha Jaggi
13111 silver badge55 bronze badges
1
Add a comment |
1
I"ve had the same error through embedding Google-Form in Chrome,

I deserve to verify that none of the found solutions aided me. Here is the screenswarm of my pop-up:

*

The just solution I"ve managed to implement was hiding the element and also then unhiding/creating the brand-new iframework via the present embed. Here"s the part of my code:

if (oldworth !== value) // checks the id of the create (value) is not the very same // set worth of the id $("#info").text(value); // check the aspect exists let exists = value; if($("#" + value).size == 0) //it doesn"t exist exists = false; // hide all son elements of the div for develops parent.children().hide(); // create new node if needed if (!exists) // develop new create aspect and also embed the form $("#google-form").clone().attr("id",value).attr("src", document.url).appendTo(parent); // unhide error aspect $("#" + value).show(); The full code of my solution is below.

See more: Why Is Copper Used For Most Electrical Wiring ? Why Is Copper Used For Most Electrical Wiring


Share
Improve this answer
Follow
answered Jul 21 "20 at 10:50
*

Max MakhrovMax Makhrov
16k44 gold badges3636 silver badges6060 bronze badges
Add a comment |
Highly energetic question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps safeguard this question from spam and also non-answer activity.

Not the answer you're looking for? Browse other questions tagged javamanuscript jquery or ask your very own question.


The Overflow Blog
Featured on Meta
Visit chat
Linked
4
How to disable "Changes you made may not be saved." dialog box (Chrome)?
0
Wicket: Disable “Changes you made may not be saved” pop-up window in wicket
0
Reload a page without prompt message
1
Stop damaging vue.js component bereason tright here are unconserved changes
0
How to repack a web page without "Changes you made might not be saved." prompt
0
Actually prevent this page from creating dialogs
Related
656
Is tright here a method to detect if a browser home window is not presently active?
581
“Origin null is not permitted by Access-Control-Allow-Origin” error for request made by application running from a file:// URL
1
How to re-populate covert CSV field on form submit using jQuery
2437
Open a URL in a new tab (and also not a brand-new window)
0
FacetWp booking adon not working through woobusiness bookings?
0
How to write-up develop, from a dynamic element
1
Disable chrome pop up "Leaving Site? Changes you made may not be saved"
Hot Network Questions even more hot inquiries
Concern feed
Subscribe to RSS
Question feed To subscribe to this RSS feed, copy and paste this URL right into your RSS reader.


*

lang-js
Stack Overflow
Products
Company
Stack Exreadjust Network-related
website architecture / logo © 2021 Stack Exreadjust Inc; user contributions licensed under cc by-sa. rev2021.9.9.40167


Stack Overflow works ideal via JavaScript allowed
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange have the right to keep cookies on your device and discshed indevelopment in accordance via our Cookie Policy.