1

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.

2
  • 5
    i dont believe you can change the native window.alert() style. it must've been a custom <div> you were seeing. Commented Oct 21, 2012 at 12:50
  • possible duplicate of how to change the style of alert box Commented Feb 21, 2014 at 11:13

3 Answers 3

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

0

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)?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.