我想在iframe中动态引入文件。
t.htm
<script>
function change(org)
{
if (org.name=="A")
{
document.Myframe.src="A.htm";
}
else
{
document.Myframe.src="B.htm";
}
}
</script>
<input type=button name="A" value="TestA" onclick=change(this);>
<input type=button name="B" value="TestB" onclick=change(this);>
<iframe name=Myframe src=tmp.htm></iframe>
这样写有错误,不知道怎样改!