Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript download

<a onclick="this.href='data:text/html;charset=UTF-8,'+encodeURIComponent(document.documentElement.outerHTML)" href="#" download="page.html">Download</a>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #download
ADD COMMENT
Topic
Name
6+4 =