View Full Version : Pop-up moveTo puzzle

06-01-2009, 02:54 PM

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?

06-01-2009, 03:08 PM
Most modern day browsers do not allow you to move the window. Look in the settings of your browser and see if it is disabled.

Why are you not setting top and left in the pop up code itself?