A day with .Net

My day to day experince in .net

To make the pop up window in the centre of the screen

Posted by vivekcek on July 21, 2009

The script for the same

function OpenTransaction()
    var LeftPosition=(screen.width)?(screen.width-820)/2:100;
	var TopPosition=(screen.height)?(screen.height-550)/2:100;
    var formProperties = 'width=820,height=550,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,top='+TopPosition+',left='+LeftPosition;


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s