<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="1.htm" name="topFrame" scrolling="NO" noresize>
<frame src="2.htm" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
我想用JAVASCRIPT得到 mainFrame的SRC值"2.htm",该如何写?
<input type=button οnclick="javascript:alert(parent.document.getElementById('mainFrame').src);">