一个页面从另一个页面中取得数据问题

elveny 2008-08-07 09:49:03
1、我有两个页面:index.html和editor.html
2、index.html通过Object标签包含editor.html:<object id="editorObj" style="border:0px" type="text/x-scriptlet" data="editor.htm" width=100% height=100%></object>
3、editor.html中有这样一个input:<input id="content" name="content" value="xxxx"/>
4、问:我怎么在index.html中取得editor.html中的content的值?
5、如果我把object换成iframe,又该怎么取呢?
6、谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢
...全文
62 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
elveny 2008-08-07
  • 打赏
  • 举报
回复
用iframe已经搞定了,但是我想用object,怎么办呢?好像很少人用object来嵌入一个页面..大家都是用iframe,那么object嵌入页面有什么不好吗?
elveny 2008-08-07
  • 打赏
  • 举报
回复
如果用iframe,怎么取呢?
还有用object又怎么取呢?
2008-08-07
  • 打赏
  • 举报
回复
用iframe
elveny 2008-08-07
  • 打赏
  • 举报
回复
index.html包含editor.html,要把editor.html中某个元素的值传到index.html中,?id=xxx是不行的
elveny 2008-08-07
  • 打赏
  • 举报
回复
index.html包含editor.html,要把editor.html中某个元素的值传到index.html中,?id=xxx是不行的
f3135210 2008-08-07
  • 打赏
  • 举报
回复

是从 editor.html 进到 index.html 传值的 问题吗



是的话`` 用 ?id= 不行吗?

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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