Skip to main content

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no.

var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);

var theTop=((screen.height/2)-(theHeight/2))/2;
var theLeft=(screen.width/2)-(theWidth/2);
var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no.

var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no.

var theTop=((screen.height/2)-(theHeight/2))/2;
var theLeft=(screen.width/2)-(theWidth/2);
var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);
Stack Overflow is like an encyclopedia, so we prefer to omit these types of phrases. It is assumed that everyone here is trying to be helpful.
Source Link
Dharman
  • 33.9k
  • 27
  • 103
  • 155

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no. I hope this helps.

var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no. I hope this helps.

var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no.

var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);

Source Link
Joe K
  • 101
  • 1
  • 9

The following is JavaScript to be used in a function: Note, I have 1's and 0's instead of yes and no. I hope this helps.

var theTop=((screen.height/2)-(theHeight/2))/2; var theLeft=(screen.width/2)-(theWidth/2); var features = 'height=600,width=800,top='+theTop+',left='+theLeft+',toolbar=1,Location=0,Directories=0,Status=0,menubar=1,Scrollbars=1,Resizable=1';

window.open(in_uri, WindowName, features);