YES/NOダイアログ admin | 2009年10月1日 function showD(){ if(confirm('表示条件文')){ // YES }else{ // NO }}alert()でOKのみ。confirm('文')でYES,NO