请问在iframe中如何判断top.document中的id(比如realplayer的id)是否存在?

qing_zb 2002-07-01 08:48:02
ridx是window.top.document.rp(realplayer的id)
function realp(ridx){

if (ridx){
}
但是不行?
很急,多谢
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
fokker 2002-07-01
  • 打赏
  • 举报
回复
改成这样:
if(window.parent.document.all.ridx){
}
fokker 2002-07-01
  • 打赏
  • 举报
回复
改成这样:
if(window.parent.document.all.ridx){
}
qing_zb 2002-07-01
  • 打赏
  • 举报
回复
window.top.document.rp是参数呀
写全了的
fokker 2002-07-01
  • 打赏
  • 举报
回复
你把它写全了:
if (window.top.document.ridx){
}

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧