Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

js download html

<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: #js #download #html
ADD COMMENT
Topic
Name
6+8 =