How can change a styling of javascript alert button?

后端 未结 3 1801
陌清茗
陌清茗 2020-12-22 04:43

I want to change a style of javascript alert box.As you can see in many website like
facebook,Here is alert boxex are stlyed.how can I do that.

相关标签:
3条回答
  • 2020-12-22 05:16

    You can not style alert box, what you could do is create a modal popup

    eg.

    http://jqueryui.com/dialog/

    http://defunkt.io/facebox/

    How to code a JavaScript modal popup (to replace Ajax)?

    0 讨论(0)
  • 2020-12-22 05:22

    You can't change it; it is implemented by the browser.

    0 讨论(0)
  • 2020-12-22 05:22

    You can't style the alert box.

    You can create a div put the message in it style it with css and pop it up with javascript.

    An example for this can be find in the jQuery UI dialog widget, DEMO

    0 讨论(0)
提交回复
热议问题