JavaScript教程_设置弹出窗口的属性
21视频教程网3月25日整理
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>HTML 弹出页面示例</title>
<script type="text/javascript">
function popup()
{
window.open("列表2.html","newwin", "toolbar=no,height=240,width=390,menubar=no, scrollbars=no, resizable=no,location=no, status=no,titlebar=no,location,directories=no,location=no");
return false;
}
</script>
</head>
<body>
<p><a href="http://www.dreamdu.com/xhtml/">HTML教程</a> <a href="http://www.dreamdu.com/xhtml/popup/"><strong>HTML 弹出页面</strong></a></p>
<p><a href="列表2.html" title="使用弹出页面" onclick="return popup()" onkeypress="return popup()">HTML教程弹出页面</a></p>
</body>
</html>
新窗口的页面
<!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>
<link href="liebiao2.css" rel="stylesheet" type="text/css" />
<body >
<div class="yuehguo_t"><div class="nei">
<div class="title"><table width="378" border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td width="45"> </td>
<td width="257"> </td>
<td width="76" align="center"><div style=" height: 15px; width: 45px; margin-top: 10px; font-family: '宋体';">
<h3><span class="guangbi"><a href="#">关 闭</a></span></h3>
</div> </td>
</tr>
</table></div>
<div class="miid_ddg">
<table class="toxxg"width="330" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="102" ><span ><img src="images/tshziltu_r2_c2.gif" /></span> </td>
<td width="248" align="left" >
<span class="shuoxxm1">你还可以:</span>
<div class="shuoxxm" >
<ul><li><a href="#">完善</span></a></li>
<li><a href="#">完善</span></a></li>
<li><a href="#">上传</a></li>
</ul>
</div></td>
</tr>
</table>
<div class="cao"><table style="background-repeat:no-repeat"width="376" height="60" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="center" valign="bottom" background="images/cao_r2_c2.gif"><img src="images/yihouzaish2_r2_c2.gif" width="74" height="23" /> </td>
</tr>
</table>
</div>
<div class="clear"></div>
<div class="clear"></div>
</div><!--end-->
</div>
</div>
</body>
</html>
JavaScript教程/编