首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

fire下无法怎么获取框架ID

2012-03-28 
fire下无法如何获取框架IDResponse.Write( script top.document.frames[ lframe ].location left.asp

fire下无法如何获取框架ID
Response.Write( " <script> top.document.frames[ 'lframe '].location= 'left.aspx ' </script> ");
这句在ie中能实现左边框架location,可是用firefox浏览的话却提示:
top.document.frames   has   no   properties

请问这是什么问题?怎么才能解决?谢谢?

[解决办法]
top.document.frames[ 'lframe '].location换为
top.document.frames[ 'lframe '].document.location试试
[解决办法]
huo789(爱拼才会赢) 正解,有些用法ie 和fx是不一样的。。fx严格遵守w3c标准。。可以查阅相关文档

热点排行