<script language="JavaScript"> 
<!-- 
var win1Open = null 

function displayImage(picName, windowName, windowWidth, windowHeight){ 
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
} 

function winClose(){ 
if(win1Open != null) win1Open.close() 
} 

function doNothing(){} 
//--> 
</script> 

<td> 
<a href="javascript:doNothing()" onClick="win1Open=displayImage('images/tag_1.jpg', 'popWin1', '480', '360')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"> 
<img src="images/tag_1_s.jpg" width="200" height="150" border="0"></a></div> 
</td> 

------------------ 

창닫기 
<input type="button" value="현재창 닫기" onClick="window.close()"> 

------------------- 

클릭시 팝업창 띄우기 
<script language="javascript"> 
<!-- 
function OpenWindow(url,intWidth,intHeight) { 
    window.open(url,"_blank","width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=1"); 
} 
//--> 
</script> 

<a href="javascript:OpenWindow('popup.html','300','200')">새창띄우기</a>