How to set Position of alert messege in asp.net -


page.clientscript.registerstartupscript(this.gettype(), "alert", "javascript:alert('my message')", true); 

above code shows message box on top of page , want center of page.

alert boxes default open @ center. @ @tomzan's comment, getting @ top chrome.

as far know it's not possible make modifications that. if want custom alert box using jquery ui. it'll allow put messagebox wherever want.

jquery ui dialog box


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -