window.open()打开一个网页,怎样能自动为其填写好表单并提交呢?

fencer_2000 2003-08-22 07:58:19
假设window.open('sina.com'),怎样能弹出窗口后即自动填入用户名、密码,进入邮箱,请各位指点一二!
...全文
139 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sw47 2003-08-22
  • 打赏
  • 举报
回复
在你的父窗口用全局变量name,pass存储用户名、密码
在新打开窗口加入onload="document.all('用户名输入框名').value=opener.name;document.all('密码输入框名').value=opener.pass;document.form[0].submit()"
anita2li 2003-08-22
  • 打赏
  • 举报
回复
如果是自己用就可以用JavaScript写一个﹐但是用在网上可不是那幺好。密码都是要输入的﹐要不就会有很多问题了
saucer 2003-08-22
  • 打赏
  • 举报
回复
1. the browser doesn't allow you to access the document object model in pages from another domain

2. try to use a form in your page but submit the data to the page from the other domain

87,904

社区成员

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

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