I am working with a Javascript function
function setComparison(data) {
var w= window.open('', 'comparison', 'width=600, height=400');
w.document.open();
w.document.write(getComparisonContent(data));
w.document.close();
return false;
}
Although I do not have access to the code that generates the (data), I am in need of replacing a specific string within it. Is there a method available where I can pass the (data) through a string replace function?