<分区>
Possible Duplicate:
How to get Text BOLD in Alert or Confirm box?
在下面的示例中,我需要为单词 alert 添加样式,因此它显示:
Hello! I am an alert box!
这是我的代码:
<html><head>
<script type="text/javascript">
function show_alert()
{
alert("Hello! I am an alert box!");
}
</script></head><body>
<input type="button" onclick="show_alert()" value="Show alert box" />
</body></html>