I am using below JS code to open new window by populating dynamic generated code..
function OpenWindow(obj) {
var w = window.open();
var stored = $(obj).parent().find("div").html();
w.document.title = "New Window";
w.document.URL = "hello.com/dummypage.html"; //how to assign the url to the newly opened window
$(w.document.body).html(stored);
return false;
}
Relative urls used in this document say for img src, in this document is not working.
<tr><td colspan='2' align='center'><img id='imglegend' src='/images/Legend.jpg'></td></tr>
EDIT:
I populate the content dynamically using javascript, just need a valid url in the brower window, to make my hyperlinks & image source ref to work.
P.S. The page pointed out in the js code, doesn't have physical existance.