sajad
sajad

Reputation: 1

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.

Click the button

And read the value (suppose a textbox).

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

How is that possible?

Upvotes: 0

Views: 87

Answers (1)

Nick Craver
Nick Craver

Reputation: 630569

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.

Upvotes: 3

Related Questions