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.
javascript dom-events
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.
add a comment |
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.
javascript dom-events
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.
add a comment |
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.
javascript dom-events
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
javascript dom-events
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.
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |