confirm box styling

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 ?

Answers:

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. ;-)

Answer

You can also use the jQuery dialog box. Check this out jQuery Dialog

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.