main.html<html>
<head>
<title>main</title>
</head>
<frameset name="menu_fs" rows="150,150,300" border="0" framespacing="0" frameborder="0">
<frame id ="first_frame" src="first.html"></frame>
<frame id ="second_frame" src="second.html"></frame>
<frame id ="external_frame" id="df" src='http://www.baidu.com'></frame>
</frameset>
</html>first.html 和second.html 是我本地的两个文件。我想在main.html里写一段js访问frame里的元素。first.html跟second.html里的标签元素都可通过document.getElementById("xxx").contentDocument这样的类似的方法访问到,第三个写链接的却怎么也访问不到,求大神指教,给出解决方法啊js frame