<script language="javascript" type="text/javascript">
function FillFrame(framename) {
// Find the object for the frame
theframe=parent[framename];
// Open and clear the frame's document
theframe.document.open();//________这里 请教一下,为什么要用theframe.document.open(); 我去掉也正常啊??????????
// Create some output
theframe.document.write("<h1>JavaScript Output</h1>");
theframe.document.write("<p>This text is in the ");
theframe.document.write(framename + " frame.</p>");
}
</script>//请教一下,
function FillFrame(framename) {
// Find the object for the frame
theframe=parent[framename];
// Open and clear the frame's document
theframe.document.open();//________这里 请教一下,为什么要用theframe.document.open(); 我去掉也正常啊??????????
// Create some output
theframe.document.write("<h1>JavaScript Output</h1>");
theframe.document.write("<p>This text is in the ");
theframe.document.write(framename + " frame.</p>");
}
</script>//请教一下,
还是不大明白,请教一下"document没加载文档"是什么意思?
我把这句去掉,程序还是一样正常运行啊.