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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 13:30:13  来源:igfitidea点击:

how to display message in pop box using javascript

javascriptpopup

提问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

回答by KBBWrite

To look it professional, fancybox is a option. Check out http://fancybox.net/

为了看起来专业,fancybox 是一个选择。查看http://fancybox.net/