<
html
>
< head >
< title > study 029 </ title >
</ head >
< body >
< h1 > 对话框测试 </ h1 >
< p >
< input type ="button" value ="alert();" onClick ="alert('alert');" >< br >
< input type ="button" value ="confirm();" onClick ="confirm('confirm');" >< br >
< input type ="button" value ="prompt();" onClick ="prompt('prompt', '默认值');" >< br >
</ p >
</ body >
</ html >
< head >
< title > study 029 </ title >
</ head >
< body >
< h1 > 对话框测试 </ h1 >
< p >
< input type ="button" value ="alert();" onClick ="alert('alert');" >< br >
< input type ="button" value ="confirm();" onClick ="confirm('confirm');" >< br >
< input type ="button" value ="prompt();" onClick ="prompt('prompt', '默认值');" >< br >
</ p >
</ body >
</ html >