document.all.iframe_image.Src
改成
document.all.iframe_image.src
S不能大写,js对大小写敏感的

解决方案 »

  1.   

    <iframe name=mm src="" id="iframe_image"></iframe><INPUT type="button" value="Preview" id="Preview" name="Preview"
     onclick="window.frames['mm'].location.href='http://www.163.com'">
      

  2.   

    你的代码能用呀你再试试。加上alert();
    <SCRIPT language="javascript">
    function Preview1()
    {
    document.all.iframe_image.Src="http://www.163.com";
    alert(document.all.iframe_image.Src);
    }
    </SCRIPT>
    <INPUT id="Preview" onclick="Preview1();" type="button" value="Preview" name="Preview">
    <iframe src="" id="iframe_image"></iframe>
      

  3.   

    同意 meizz(梅花雪)iframe的src属性好像没法直接改。应该通过它的location属性来改。