.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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -