Javascript code
Function openwindow (url, name, iWidth, iHeight)
{
Var url; // the address of the redirection webpage;
Var name; // webpage name, which can be blank;
Var iWidth; // The width of the pop-up window;
Var iHeight; // The height of the pop-up window;
Var iTop = (window. screen. availHeight-30-iHeight)/2; // obtain the vertical position of the window;
Var iLeft = (window. screen. availWidth-10-iWidth)/2; // obtain the horizontal position of the window;
Window. open (url, name, 'height = '+ iHeight +', innerHeight = '+ iHeight +', width = '+ iWidth +', innerWidth = '+ iWidth + ', top = '+ iTop +', left = '+ iLeft +', toolbar = no, menubar = no, scrollbars = auto, resizeable = no, location = no, status = no ');
}
You can call this function when using it. For example:
<A href = "javascript: void (0);" onclick = "javascript: openwindow('a.html ','', 400,200); "> go to a </a>
Disadvantage: it has nothing to do with the size and position of the original window.