I have an ajaxcall which returns an html page to me in the response. I want to open this in a new window. How to make this work?
console.log(data) basically prints the entire html content as if it were a single string
I have an ajaxcall which returns an html page to me in the response. I want to open this in a new window. How to make this work?
console.log(data) basically prints the entire html content as if it were a single string
This should work:
var tab = window.open('about:blank', '_blank');
tab.document.write(data); 
tab.document.close();