I am using the JS code below to open a new window by populating dynamically 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";
The relative URLs used in this document say that for img src
does not work in this document.
<tr><td colspan='2' align='center'><img id='imglegend' src='/images/Legend.jpg'></td></tr>
EDIT:
I dynamically populate the content using javascript, you just need to have a valid URL in the browser window for my links and links to the image source to work.
PS The page specified in the js code has no physical existence.
source share