How to forcefully click on a button in an iframe using jQuery or PHP?
example
<iframe src="www.google.com"></iframe>
I want to press the button or anchor tag in that iframe.
And also change anchor tag target -> '_self'
How to forcefully click on a button in an iframe using jQuery or PHP?
example
<iframe src="www.google.com"></iframe>
I want to press the button or anchor tag in that iframe.
And also change anchor tag target -> '_self'
Expanding on "not possible"...
The "Same origin policies" apply: your only way of communicating with the contents of iframes that come from another [domain|subdomain|protocol|port] is through the postMessage API, which of course requires the other part (the document inside the iframe) to listen to your messages. This means that unless you're a google employee with access to the search frontend, this won't be possible.
If you work at google and want to press a button forcefully, I recommend standing with your foot on your mouse: your weight will help push it with more strength.
On serverside you could use CasperJS to click some stuff inside an iFrame. See here How do I access an iframe from CasperJS?