有问题吗?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
<script type="text/javascript">
function xingbie()
{
var messge=confirm("请问,您是婆娘吗?") ;
if (messge==true)
{ document.write("恭喜!您是个性感美女!"); }
else
{ document.write("遗憾!您是个臭男人!");}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="xingbie()" value="点击我,弹出确认对话框" />
</body>
</html>