怎么用javascript实现这个功能:在一个页面包含上下2个Frame,在上方页面的一个button的onclick事件中要求把页面demo.htm显示在下方的Frame parent.frameName.window.location.href = 'demo.heml';frameName 是你的Frame的name。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同意 Apollo47(阿波罗) ( ) 信誉:100 这样写吗?:onclick = "parent.mianFrame.window.location.href = 'demo.html' --------------出现如下错误: parent.mianFrame.window为空或不是对象是我代码写错啦,还是怎的!?-----------javascript 新手,请多多指教! 本人笔误 应该为:parent.mainFrame.window为空或不是对象 parent.mainFrame.location = 'demo.html' javacript中 用document.writeln输入文本,假如文本中需要有双引号" 怎么做, ------------也就是javascript文本双引号的转义字符是怎么表示的? 因为我是用document.writeln来输出html,现在的错误不是parent.mainFrame.window为空或不是对象 而是“语法错误”,---document.writeln("<tr>");document.writeln("<td align=center height=20 style='cursor:hand;' onclick=parent.mainFrame.window.location.href= '" + mypage + "'"></td>"); document.writeln("</tr>");----很可能这里有语法错误 js如何随机让小方格变亮? 小问题,请问Array.length每次调用时重新计算数组长度吗? jQuery的简单问题 关于div的问题 根据VALUE快速选择某个INPUT 一直都没有什么好的方法解决的问题!!请赐教 浏览器下载文件时,服务器端能否知道用户点击了取消按钮? 下拉框宽度问题,300分 急:检索并修改URL中的变量 又是动态表格的问题 如何在js的字符串变量中引用其他变量 如何選擇下拉框後,textarea就會相應的顯示內容.急
onclick = "parent.mianFrame.window.location.href = 'demo.html' --------------
出现如下错误: parent.mianFrame.window为空或不是对象是我代码写错啦,还是怎的!?-----------
javascript 新手,请多多指教!
parent.mainFrame.window为空或不是对象
,假如文本中需要有双引号" 怎么做,
------------
也就是javascript文本双引号的转义字符是怎么表示的?
现在的错误不是parent.mainFrame.window为空或不是对象
而是“语法错误”,
---
document.writeln("<tr>");
document.writeln("<td align=center height=20 style='cursor:hand;' onclick=parent.mainFrame.window.location.href= '" + mypage + "'"></td>");
document.writeln("</tr>");----
很可能这里有语法错误