frame弹出框

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>

<script type="text/javascript" language="javascript">
<!--
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=280,screenX=490,screenY=320,top=200,left=490')
}
//--></script>

</head>

<body>
<a href="javascript:popupWindow('1.html')">点击弹开</a>
</body>
</html>

 

 

弹出框的内容

<body>
这个就是你弹出的内容区域
下面有个按钮可以关闭 ,本窗口!!!<br/>

<a href="javascript:window.close()">[关闭窗口]</a>
<br/>
小二测试过了,可以使用
</body>

posted @ 2011-08-18 15:38  小2010  阅读(372)  评论(0编辑  收藏  举报