<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head runat = "server">
<Title> </title>
<Link href = "StyleSheet.css" rel = "stylesheet" type = "text/css"/>
<Script src = "jquery. js" type = "text/javascript"> </script>
<Script type = "text/javascript">
Function ShowMessageBox (){
Var _ width = document.doc umentElement. clientWidth;
Var _ height = document.doc umentElement. clientHeight;
$ ("# Div_msg" 2.16.css ("top", (_ height-$ ("# div_msg"). height ()/2 );
$ ("# Div_msg" ).css ("left", (_ width-$ ("# div_msg"). width ()/2 );
}
</Script>
</Head>
<Body>
<Form id = "form1" runat = "server">
<Div>
<A href = "javascript: void (0)" onclick = "ShowMessageBox ()"> Click </a>
<Div id = "div_msg" class = "div_msg" style = "position: absolute; left: 0; top: 0; width: 250px">
Saved successfully!
</Div>
</Div>
</Form>
</Body>
</Html>
If jQuery is used above, you can change it to a normal implementation.