openning a new window? help

wxdqz

New Member
hi guys,
i wrote a function to open a new window as below.

function xx()
{
var newWindow;
var availHe;
var availWi;
var topPisi;
var leftPosi;
var settings;

availHe=screen.availHeight;
availWi =screen.availWidth;

topPosi=(availHe-500)/2;
topPosi=topPosi-10;
leftPosi=(availWi-700)/2;

settings='height=500 width=700,location=no,directories=no,status=no,menubar=no,toolbar=no,scrollBars,top='+topPosi+',left ='+leftPosi;

newindow=window.open('responseHandle.html','',settings);
}

I called this function on button click event and it`s works fine. and i minimized that windowand pressed that button for the second time it again opened a new window instead of the previous one.
but what i want is when i pressed the button for the second time it should open the previous window instead of a new one.

how can i do this , please help me . Am i doing some thing wrong here?

i really appreciate all your help..

please send me some speedy reply.

thank you very much.

niroshan
 
Back
Top