A simple example of saving pictures by JS under IE

  • 2021-07-04 17:46:05
  • OfStack

A simple example of saving pictures by JS under IE


function ieSave()
          {
            var img = document.images[0];
            var oPop = window.open(img.src, "", "width=0,height=0,top=5000,left=5000");
            for (; oPop.document.readyState != "complete";) {
              if (oPop.document.readyState == "complete") break;
            }
            oPop.document.execCommand("SaveAs");
            oPop.close();
          }


Related articles: