Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
how to create a message box in javascript within a small amount of coding.
Posted
Comments
OriginalGriff 29-Oct-11 3:53am    
Reason for my vote of one: Too lazy to use Google.

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[^]
 
Share this answer
 
Try this:

C#
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>");
        }


NOTE: Use google before posting your question here.
 
Share this answer
 
Comments
Amir Mahfoozi 30-Oct-11 6:46am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900