window.close();
解决方案 »
- javascript 控制 div显示和隐藏时的时间控制问题
- 帮忙给调试一下js,另求教调试工具和方法,书籍!
- jsp截取字符长度?
- 求助:在动态添加的行中如何执行js脚本语句呢?
- 如何获取innerHtml输出的对象
- JS页面发生滚动的情况?
- 求助animate中使用filters
- 能否在页面设置一个按钮,点击的时候,保存本页面为指定目录下的指定文件(在线等待)
- 请问如此允许错误发生了,我加了on error resume next 在状态栏依然提示错误,请问还有其实办法吗
- 如何确定form中是否存在某object
- 如何能得到xmlhttp.responseText里面的某个元素的内容?
- JS给tbale添加行
<!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 language='javascript'>
function test()
{
window.close();
}
</script>
</head><body>
<label>
<input type="submit" name="Submit" value="提交" onclick="test();" />
</label>
</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>
<script language='javascript'>
function test()
{
var windows= window;
windows.close();
}
</script>
</head><body>
<label>
<input type="submit" name="Submit" value="提交" onclick="test();" />
</label>
</body>
</html>