Andrew Woodard
Andrew Woodard

Reputation: 545

Is it possible to open a page and click a button on another page using php or javascript

I'm trying to load a page on the same site and click a link. I can either use php or javascript. Is this possible.

Upvotes: 0

Views: 53

Answers (1)

Varun
Varun

Reputation: 1946

One way i am getting to mind now is to send a paramater in the URL. And the do a $_GET.If it is set to a particular value then do a <script> document.getElementById("id").click(); </script>

Upvotes: 1

Related Questions