Saving current page or triggering ctrl+s combination on button or href tags chrome jquery javascript -


can save current page browser (i don't have in server), if not, how can trigger ctrl+s combination when press button or href? im repeating: don't have page on server, cant this: <a href="downloads/page.html" download>download page</a>.

try .simply add current url in a

$('a').attr('href',window.location.href)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <a href="" download>download page</a>.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -