This function:
function mypopup()
{
mywindow = window.open("http://www.mort3za.ir/somehtml.html",
"mywindow",
"menubar=0,status=1,scrollbars=1, width=500,height=500");
mywindow.moveTo(300, 50);
}
opens a popup with “mort3za.ir” address instead of “mort3za.ir/popup.html”.
Internet Explorer 9 opens the correct path, so my problem is actually with Chrome and Firefox.
It’s going to the right page. The site is responding with a 302 to redirect the browser to the URL you’re seeing.
edit — it’s not clear why it’s responding with a 302; just typing the URL into the address bar goes to the popup page.
edit again — oh I see – your host doesn’t like it when the popup page is accessed with a “REFERER” value that’s unrecognized (or something). If I tell Firefox not to send REFERER, then your page does the right thing.