.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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -