Detect save page to disk [duplicate]





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0
















This question already has an answer here:




  • Javascript to detect when a user saves the web page?

    4 answers




Just like there's window.onbeforeprint to determine if the user is trying to print, is there a similar web API to define a callback when the user is about to save current page to disk (File/ Save as)?



The use case would be the same: being able to make changes to the page before it gets saved.










share|improve this question













marked as duplicate by George, Sergio Moura, Community Nov 22 '18 at 17:51


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

























    0
















    This question already has an answer here:




    • Javascript to detect when a user saves the web page?

      4 answers




    Just like there's window.onbeforeprint to determine if the user is trying to print, is there a similar web API to define a callback when the user is about to save current page to disk (File/ Save as)?



    The use case would be the same: being able to make changes to the page before it gets saved.










    share|improve this question













    marked as duplicate by George, Sergio Moura, Community Nov 22 '18 at 17:51


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.





















      0












      0








      0









      This question already has an answer here:




      • Javascript to detect when a user saves the web page?

        4 answers




      Just like there's window.onbeforeprint to determine if the user is trying to print, is there a similar web API to define a callback when the user is about to save current page to disk (File/ Save as)?



      The use case would be the same: being able to make changes to the page before it gets saved.










      share|improve this question















      This question already has an answer here:




      • Javascript to detect when a user saves the web page?

        4 answers




      Just like there's window.onbeforeprint to determine if the user is trying to print, is there a similar web API to define a callback when the user is about to save current page to disk (File/ Save as)?



      The use case would be the same: being able to make changes to the page before it gets saved.





      This question already has an answer here:




      • Javascript to detect when a user saves the web page?

        4 answers








      javascript dom-events






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 15:34









      Álvaro GonzálezÁlvaro González

      107k31190281




      107k31190281




      marked as duplicate by George, Sergio Moura, Community Nov 22 '18 at 17:51


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by George, Sergio Moura, Community Nov 22 '18 at 17:51


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


























          1 Answer
          1






          active

          oldest

          votes


















          1














          According to the official mdn docs, there is not.



          There is only one method when "saving for mobile" (aka: adding the icon to the home page) called onbeforeinstallprompt, but I don't think this is what you're looking for.






          share|improve this answer
























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Roman Pokrovskij
            Nov 22 '18 at 16:05






          • 1





            @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

            – Sergio Moura
            Nov 22 '18 at 17:06











          • I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

            – Roman Pokrovskij
            Nov 22 '18 at 20:18




















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          According to the official mdn docs, there is not.



          There is only one method when "saving for mobile" (aka: adding the icon to the home page) called onbeforeinstallprompt, but I don't think this is what you're looking for.






          share|improve this answer
























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Roman Pokrovskij
            Nov 22 '18 at 16:05






          • 1





            @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

            – Sergio Moura
            Nov 22 '18 at 17:06











          • I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

            – Roman Pokrovskij
            Nov 22 '18 at 20:18


















          1














          According to the official mdn docs, there is not.



          There is only one method when "saving for mobile" (aka: adding the icon to the home page) called onbeforeinstallprompt, but I don't think this is what you're looking for.






          share|improve this answer
























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Roman Pokrovskij
            Nov 22 '18 at 16:05






          • 1





            @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

            – Sergio Moura
            Nov 22 '18 at 17:06











          • I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

            – Roman Pokrovskij
            Nov 22 '18 at 20:18
















          1












          1








          1







          According to the official mdn docs, there is not.



          There is only one method when "saving for mobile" (aka: adding the icon to the home page) called onbeforeinstallprompt, but I don't think this is what you're looking for.






          share|improve this answer













          According to the official mdn docs, there is not.



          There is only one method when "saving for mobile" (aka: adding the icon to the home page) called onbeforeinstallprompt, but I don't think this is what you're looking for.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 '18 at 15:37









          Sergio MouraSergio Moura

          4,07311732




          4,07311732













          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Roman Pokrovskij
            Nov 22 '18 at 16:05






          • 1





            @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

            – Sergio Moura
            Nov 22 '18 at 17:06











          • I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

            – Roman Pokrovskij
            Nov 22 '18 at 20:18





















          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Roman Pokrovskij
            Nov 22 '18 at 16:05






          • 1





            @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

            – Sergio Moura
            Nov 22 '18 at 17:06











          • I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

            – Roman Pokrovskij
            Nov 22 '18 at 20:18



















          While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

          – Roman Pokrovskij
          Nov 22 '18 at 16:05





          While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

          – Roman Pokrovskij
          Nov 22 '18 at 16:05




          1




          1





          @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

          – Sergio Moura
          Nov 22 '18 at 17:06





          @RomanPokrovskij kind of hard to put in the answer if the answer is essentially “it’s not on the contents of this link”...

          – Sergio Moura
          Nov 22 '18 at 17:06













          I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

          – Roman Pokrovskij
          Nov 22 '18 at 20:18







          I could be wrong with this review of your post. Many reviewers will check it to find consensus it and if I am wrong I will be punished (with temporal ban) :) IMHO answer on SO should be a "small interesting story" and content direct answer, all other could be a comment.

          – Roman Pokrovskij
          Nov 22 '18 at 20:18







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?