javascript消息框 [英] javascript message box
本文介绍了javascript消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过少量编码在javascript中创建消息框.
how to create a message box in javascript within a small amount of coding.
推荐答案
Google是您的朋友:很好,经常拜访他.与在这里发布问题相比,他可以更快地回答问题.
http://www.google. co.uk/search?gcx=c&sourceid=chrome&ie=UTF-8&q=javascript+message+box [
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
http://www.google.co.uk/search?gcx=c&sourceid=chrome&ie=UTF-8&q=javascript+message+box[^]
尝试一下:
Try this:
protected void Button1_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("starScript", "<script language=JavaScript>Message('Hello ');</script>");
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "test", "<script>alert('hi');</script>");
}
注意:在将问题发布到此处之前,请先使用google.
NOTE: Use google before posting your question here.
这篇关于javascript消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文