munna
08-22-2003, 05:28 AM
Hi,
I'm trying to open a new window in the middle of the viewer's screen, and have got this -- but it doesn't work. Please someone tell me what I'm doing wrong here?
<a href ="#" onClick="window.open('netsearch.html', 'netsearch', 'resizable, toolbar=no, location=no, status=no, scrollbars=no, menubar=no, titlebar=no, height=315, width=215',top='((screen.availHeight/2)-(315/2))',left='((screen.availWidth/2)-(215/2))')">
<img src="images/globe.gif" width="25" height="25" border ="0" align="middle" /></a></td>
I'm trying to open a new window in the middle of the viewer's screen, and have got this -- but it doesn't work. Please someone tell me what I'm doing wrong here?
<a href ="#" onClick="window.open('netsearch.html', 'netsearch', 'resizable, toolbar=no, location=no, status=no, scrollbars=no, menubar=no, titlebar=no, height=315, width=215',top='((screen.availHeight/2)-(315/2))',left='((screen.availWidth/2)-(215/2))')">
<img src="images/globe.gif" width="25" height="25" border ="0" align="middle" /></a></td>