Skip to content Skip to sidebar Skip to footer

How Can I Copy The Content Of Popup Box In Javascript Or Jquery

I want to open a URL (of another domain) in a popup box and then want to copy the whole content of that web page's contents either into the clipboard or in a variable. So that I ca

Solution 1:

Maybe you can try this:

function openWin(){
   m = window.open("some.url.here");
   m.addEventListener("load", function(){func(m);});
}

function func(v){
   var c = v.document.body.innerHTML;
   v.close();
}

Post a Comment for "How Can I Copy The Content Of Popup Box In Javascript Or Jquery"