我记得好象就用document.clear();
怎么会不行呢?
怎么会不行呢?
解决方案 »
- 想用try和catch函数发现错误,无法实现,求帮助。
- 谁有这个效果的例子?
- 调用window.location.href的mailto时如何不触发onBeforeUnload事件
- 奇怪!IE7用js控制打开excel文件,开了一个新窗体后又自动关闭
- 像这样的左边菜单树要怎么做?
- 模式方式打开子窗体刷新父窗体框架中的子框架问题 (先前发的有问题)
- 关于select传值的问题
- 为什么textarea里的数据提交到另一个页面后,接收不到里面的回车换行符呀,如何解决???
- 请教一个正则表达式问题,关于数字验证
- 怎样取得form中select元素的值
- 我想让我的按纽停在固定位置?
- 怎样同时让选中多个input text?
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="left.htm">
<frame name="mainFrame" src="right.htm">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000"></body></noframes>
</html>/////////left.htm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript>
function clearright()
{
kkk= window.parent.frames["mainFrame"].document
kkk.open()
kkk.clear()
kkk.close()
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href='javascript:clearright()'>jsf</a>
</body>
</html>
////////right.htm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="#FFFFFF" text="#000000">
wrewrwerwerew
</body>
</html>
/////////////////////////调试通过(ie5)