开发者

opening a different webpage from my webpage and reading its content /clicking buttons etc

I was just curious as how to do this.

I want to open www.whatsmyip.com or something similar from my webpage.

Put an ip address in the textbox in that page.

Cl开发者_开发百科ick the button

And read the value (suppose a textbox).

I want to achieve all this programatically without any human interaction.

How is that possible?


The example you posted is not possible.

You can't read the contents of a frame from another domain(though a subdomain or on the same domain is possible), this is a restriction known as the same-origin policy, put in place for security reasons.

What If I could launch gmail.com and read your login name, what about your online banking site? :) You can see how this would be quickly abused if allowed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜