如何在屏幕中心制作javascript弹出窗口以进行验证。 [英] How to make javascript popup window in center of screen for validations.

查看:82
本文介绍了如何在屏幕中心制作javascript弹出窗口以进行验证。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我正在使用asp.net c#



我的要求是我想要的将弹出窗口设置在屏幕中央...

目前它显示在屏幕顶部。



这是代码,我已经写过弹出窗口。



ScriptManager.RegisterStartupScript(this,this.GetType(),RunCode,javascript:alert('Record added successfullyfully') ); document.location.href ='Home.aspx';,true);



请帮助我,如何在屏幕中央显示。



谢谢。

解决方案

查看这篇文章



http://stackoverflow.com/questions/4068373/center-a-popup-屏幕上的窗口 [ ^ ]

Hello FRIENDS,

am working on asp.net c#

My requirement is i want to make the popup window in center of screen...
Presently it is displaying in the top of screen.

This is the code, that i have wrote for popup.

ScriptManager.RegisterStartupScript(this, this.GetType(), "RunCode", "javascript:alert('Record added Successfully');document.location.href='Home.aspx';", true);

Please help me, how to display in the center of screen.

Thanks.

解决方案

check this article

http://stackoverflow.com/questions/4068373/center-a-popup-window-on-screen[^]


这篇关于如何在屏幕中心制作javascript弹出窗口以进行验证。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆