<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<a href='http://www.sina.com' onclick='testit(this)' >hahahaaa</a>
<table>
<tr>
<td id=newtd></td>
<td><iframe src='testtest.html' id=ifrm ></iframe></td>
</tr>
</table>
<script language="JavaScript">
<!--
function testit(value){
document.frames("ifrm").newtd.innerText=value.href;
return false;
}
//-->
</script>
</body>
</html>
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head><body>
<a href='http://www.sina.com' onclick='testit(this)' >hahahaaa</a>
<table>
<tr>
<td id=newtd></td>
<td><iframe src='testtest.html' id=ifrm ></iframe></td>
</tr>
</table>
<script language="JavaScript">
<!--
function testit(value){
document.frames("ifrm").newtd.innerText=value.href;
return false;
}
//-->
</script>
</body>
</html>
而且还有错误呀
<td><a href='http://www.sina.com' target=ifrm >hahahaaa</a></td>
</table>
<table>
<tr>
<td id=newtd></td>
<td><iframe src='about:blank' name=ifrm ></iframe></td>
</tr>
</table>