...

View Full Version : Pop-up moveTo puzzle



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?

A1ien51
06-01-2009, 02: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?

Eric



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum