Detect save page to disk [duplicate]











up vote
0
down vote

favorite













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 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.



















    up vote
    0
    down vote

    favorite













    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 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.

















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      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 at 15:34









      Álvaro González

      104k30182270




      104k30182270




      marked as duplicate by George, Sergio Moura, Community Nov 22 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 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

















          up vote
          1
          down vote













          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 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 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 at 20:18




















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          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 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 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 at 20:18

















          up vote
          1
          down vote













          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 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 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 at 20:18















          up vote
          1
          down vote










          up vote
          1
          down vote









          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 at 15:37









          Sergio Moura

          4,03311631




          4,03311631












          • 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 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 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 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 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 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 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 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 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 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 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 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 at 20:18





          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)