icklechurch
06-01-2009, 01:54 PM
Hi.
I have the following code for a pop-up window, but the window does not move as it should, as per the following function:
function newWindow(top, offset, id, guidestart) {
var top = top + 350;
var offset = offset + 200;
mywindow = window.open ("guide_noepg_draft.php?id="+id+"&guidestart="+guidestart+"", "mywindow", "location=1,status=1,scrollbars=1,width=700,height=300");
mywindow.moveTo(offset, top);
}
It moves down the page correctly but always appear at 0 on the left hand side.
Any suggestions?
I have the following code for a pop-up window, but the window does not move as it should, as per the following function:
function newWindow(top, offset, id, guidestart) {
var top = top + 350;
var offset = offset + 200;
mywindow = window.open ("guide_noepg_draft.php?id="+id+"&guidestart="+guidestart+"", "mywindow", "location=1,status=1,scrollbars=1,width=700,height=300");
mywindow.moveTo(offset, top);
}
It moves down the page correctly but always appear at 0 on the left hand side.
Any suggestions?