.net - Save Iframe content using javascript -
i need save content of iframe contains image , other information image using javascript.
any method frame.print() automaticaly open print window.
thanks in advance.
if parent document , iframe's document on same domain, can :
var idoc = document.getelementsbytagname("iframe")[0].contentwindow.document; window.open(idoc.getelementbyid("idofimageintheiframe").src, "download_win");
otherwise(not on same domain), security exception thrown.
Comments
Post a Comment