C# 希望通过javascript显示相关弹出窗口,这也适用于IE7及以上版本

C# 希望通过javascript显示相关弹出窗口,这也适用于IE7及以上版本,c#,javascript,jquery,asp.net,C#,Javascript,Jquery,Asp.net,我想通过javascript函数显示一个弹出窗口,并附带以下条件- -弹出窗口应该在页面的中心。 -当弹出窗口打开时,用户无法访问父页面。 -也可在IE7或以上级别工作 然而,我尝试以下代码,但没有得到成功 window.open('PopUp.aspx', 'popjack', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=

我想通过javascript函数显示一个弹出窗口,并附带以下条件- -弹出窗口应该在页面的中心。 -当弹出窗口打开时,用户无法访问父页面。 -也可在IE7或以上级别工作

然而,我尝试以下代码,但没有得到成功

 window.open('PopUp.aspx', 'popjack',
        'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,width=955,height=500');
通过jQuery可以很容易做到吗? 提前谢谢

来自jqueryui


jQuery UI对话框-基本模式
$(函数(){
$(“#对话框模式”).dialog({
身高:140,
莫代尔:对
});
});
添加模式覆盖屏幕使对话框看起来更加突出,因为它使页面内容变暗

我是自由人。Donec aliquet leo vel magna。红背相思。埃蒂安·比本杜姆、埃尼·福西布斯·阿利奎特·朗库斯、阿尔库·菲利斯·乌尔里西斯·内克、艾米特·拍卖行精英爱神之座

对话框现在应该打开到窗口的中心,并且应该是模态的(用户不能与对话框以外的其他元素交互)

<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Dialog - Basic modal</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
  <script src="/resources/demos/external/jquery.bgiframe-2.1.2.js"></script>
  <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <script>
  $(function() {
    $( "#dialog-modal" ).dialog({
      height: 140,
      modal: true
    });
  });
  </script>
</head>
<body>

<div id="dialog-modal" title="Basic modal dialog">
  <p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>

<p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>


</body>
</html>