Is there a way to load the current innerHTML document into a file programmatically ?
I made the following attempt without success. It downloads the current source of the document, however this is not what I am looking for since I want to save any modifications to the documents after loading .
var save = document.createElement('a'); save.href = "my location href.attr"; save.target = '_blank'; save.download = fileName || 'unknown'; var event = document.createEvent('Event'); event.initEvent('click', true, true); save.dispatchEvent(event);
javascript download
saeedhbi
source share