Javascript 如何使用javascript在弹出框中显示消息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4657924/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to display message in pop box using javascript
提问by user525109
how to display message value of form message field in pop box in javascript
如何在javascript的弹出框中显示表单消息字段的消息值
回答by stecb
without using any frameworks, you can simply use
不使用任何框架,你可以简单地使用
alert('message');
or
或者
confirm('sure?');
or
或者
prompt('insert something:');
回答by Vincent
See the jQuery UI http://jqueryui.com/demos/dialog/
请参阅 jQuery UI http://jqueryui.com/demos/dialog/
回答by KBBWrite
To look it professional, fancybox is a option. Check out http://fancybox.net/
为了看起来专业,fancybox 是一个选择。查看http://fancybox.net/