Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I want to style the confirm box generated by JavaScript. I want the background color of the box to be green and replace ok/cancel with yes/no. Do you know how to do this ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
245 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can't style a confirm(); alert -- this is generic to the browser. Instead, look into alternatives such as boxy for jQuery: http://onehackoranother.com/projects/jquery/boxy/

boxy for jQuery -- asking a question

Of course, you can style this in CSS until your heart melts. ;-)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...