jquery - Stylish popup in javascript? - Stack Overflow

The alert boxconfirm box which we get in javascript are simple popup box. I need to modify the box sty

The alert box/confirm box which we get in javascript are simple popup box. I need to modify the box style. Means to make the text bold, and to make these pop up stylish. How can I achieve that??

The alert box/confirm box which we get in javascript are simple popup box. I need to modify the box style. Means to make the text bold, and to make these pop up stylish. How can I achieve that??

Share Improve this question asked Dec 5, 2012 at 16:52 Ankit BansalAnkit Bansal 2,3589 gold badges53 silver badges82 bronze badges 2
  • 8 You can't modify the message box that results from the alert() and confirm() calls. You'll need to create your own custom alert box. You can use something like the jQuery UI dialog box: jqueryui./dialog – sbeliv01 Commented Dec 5, 2012 at 16:56
  • That ment should be an answer – MalSu Commented Dec 5, 2012 at 16:59
Add a ment  | 

2 Answers 2

Reset to default 4

You can't modify the message box that results from the alert() and confirm() calls. You'll need to create your own custom alert box. You can use something like the jQuery UI dialog box: http://jqueryui./dialog

This is not possible with traditional browse popups. You have to use a javascript/modal popup.

Here's an example:

http://jqueryui./dialog/#modal-confirmation

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742410707a4438756.html

相关推荐

  • jquery - Stylish popup in javascript? - Stack Overflow

    The alert boxconfirm box which we get in javascript are simple popup box. I need to modify the box sty

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信