如何在javascript中提醒消息格式? [英] How to alert message formatting in javascript?
本文介绍了如何在javascript中提醒消息格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尊敬的先生,
如何在java脚本中提醒消息格式?
解决这个问题的另一种方法
你能告诉我怎么样吗?
by mohan。
Dear sir,
How to alert message formatting in java script?
Any alternate way to solve this problem
can u tell me how?
by mohan.
推荐答案
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "thisScipt", "alert('Success');", true);
1st Type-
1st Type-
<script type="text/javascript">
var y=window.prompt("please enter your name")
window.alert(y)
</script>
第二类 -
2nd Type-
<script type="text/javascript">
var x=window.confirm("Are you sure you are ok?")
if (x)
window.alert("Good!")
else
window.alert("Too bad")
</script>
这篇关于如何在javascript中提醒消息格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文