Jay Jay - 1 year ago 85
CSS Question

how to change the style of alert box

I need to change the style of the "OK" Button in an alert box.

<script type="text/javascript">
function show_alert() {
alert("Hello! I am an alert box!");
<input type="button" onclick="show_alert()" value="Show alert box" />

Answer Source

The alert box is a system object, and not subject to CSS. To do this style of thing you would need to create an HTML element and mimic the alert() functionality. The jQuery UI Modal box does a lot of the work for you, working basically as I have described: Link.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download