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.
精彩评论