??不太明白你的意思?
是不是这样
window.open('','','toolbars=no');
if (confirm('yesorno'))
   return true;
else
   return false;