の内容を変更する:私はIFRAMEからなるHTMLページを持っていますインラインフレーム
<html>
<body>
<iframe id = "i1" name = "i1" src = "C:\Documents and Settings\adivekar\Desktop\sa.html"></iframe>
<br><input type = "text" name = "t1" id = "One"/>
<br><input type = "button" value = "change1" name = "b1" onclick = "call1()">
<script type = "text/javascript">
function call1(){
var a = document.getElementById('i1');
var b = a.contentDocument;
b.open()
var c = b.getElementById('Two');
c.value = "dfsdf";
}
</script>
</body>
インラインフレームを含むページがある:
<html>
<body>
<input type = "text" name = "t2" id = "Two"/>
</body>
</html>
私はの値を更新することができませんiframeのテキストボックス。
あなたがエラーを取得しますか?同じ原産地政策のためにうまくいきません。読み込んだコンテンツは別のドメインのものです... –