How to reload in the same popup with different domain [duplicate]

I have javascript popup.

My application server is localhost:8023 and opens the page on localhost:8024

it opens the window at first,

var win = window.open('http://localhost:8024/dummy?id=test1',"_blank",'status=yes,width=500,height=500');

then, I want to reload in the same popup such as

window.open('http://localhost:8024/dummy?id=test2',win,'status=yes,width=500,height=500');

However this doesn’t open.

Is there any method to do this?