(032)javascript_bom_confirm

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml">
 3 <head>
 4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 5     <title>BOM</title>
 6     <script type="text/javascript">
 7 
 8         //var b = confirm("are you sure");
 9 
10         //alert(b);
11 
12         var str = prompt("please input your name","jack");
13 
14         alert(str);
15 
16     </script>
17 </head>
18 
19 <body>
20 
21 </body>
22 </html>

 

posted @ 2014-03-23 10:28  雪中飞雁  阅读(62)  评论(0)    收藏  举报