tomayac’s avatartomayac’s Twitter Archive—№ 18,510

  1. …in reply to @edent
    @edent 1) Create <a download="b.html"> programmatically. 2) Set its href attribute to a data URL representation of the outerHTML of #b. 3) Programmatically click the link. 4) Profit.