document.write("some text") erases URL and about:blank is shown
<p>I have written<br> <code>1. var win=window.open("problem.html");
<br>2. win.document.write("some text")</code>
<br>When I don't write 2nd line a new tab opens with the <code>problem.html</code> appended in the current URL.
<br>But when I include 2nd line, it shows a new tab with text <code>some text</code> but URL is <code>about:blank</code>.<br> Please suggest a way so that my URL won't change.</p>