Jay Jay - 7 months ago 29
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" />


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.