编辑文本后点击显示结果
www.WoYouXian.net 我有闲 IT 教程
<html> <head> <script type="text/javascript"> var txt="" function message() { try { adddlert("Welcome guest!") } catch(err) { txt="本页中存在错误。\n\n" txt+="点击“确定”继续查看本页,\n" txt+="点击“取消”返回首页。\n\n" if(!confirm(txt)) { document.location.href="/index.html" } } } </script> </head> <body> <input type="button" value="查看消息" onclick="message()" /> </body> </html>
© 2007-2008 woyouxian.net 版权所有
Contact Us