大家好,我想问一下 ,如何点击下面我给出的图片("><input type="image" src="img/gb.gif" width="78" height="21" alt="">)后就退出了本页面啊??
请大家帮帮忙吧!!
谢谢!!!
最好给我个示例让我看一眼!!!!<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<body bgcolor="#EEF5FF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><table width="796" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="95" align="right"><input type="image" src="img/gb.gif" width="78" height="21" alt=""></td>
</tr>
</table>
</body>
</html>
请大家帮帮忙吧!!
谢谢!!!
最好给我个示例让我看一眼!!!!<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<body bgcolor="#EEF5FF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><table width="796" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="95" align="right"><input type="image" src="img/gb.gif" width="78" height="21" alt=""></td>
</tr>
</table>
</body>
</html>
window.close()
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<body bgcolor="#EEF5FF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><table width="796" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="95" align="right"><input type="image" src="img/gb.gif" width="78" height="21" alt="" onclick="javascript:window.close();"></td>
</tr>
</table>
</body>
</html>
<head>
<script language="java">
function close()
{
window.close();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<body bgcolor="#EEF5FF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><table width="796" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="95" align="right"><input type="image" src="img/gb.gif" width="78" height="21" alt="" onclick="close"></td>
</tr>
</table>
</body>
</html>
window.opener = null;//防止弹出确认对话框
window.close();