프로그래밍/JS,Jquery - Plugin

window.open & showModalDialog 창에서 버튼 누르면 계속 새창뜰때 해결방법

쇠주는참이슬 2012. 4. 4. 09:48

팝업이나 모달창 에서 내용을 갱신할때
자신이 아니라 새로운 창으로 열릴때..
<base target="_self">
을 Head 테그 안에 넣는다.

 

<head>
   <meta http-equiv=Content-Type content="text/html;charset=euc-kr" />
   <meta http-equiv=Cache-Control content=No-Cache />
   <meta http-equiv=Pragma   content=No-Cache />
<title>Popup Sample</title>
<base target="_self">
</head>