简体   繁体   English

是否可以使用php或javascript打开页面并单击另一页面上的按钮

[英]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. 我可以使用php或javascript。 Is this possible. 这可能吗。

One way i am getting to mind now is to send a paramater in the URL. 我现在想到的一种方法是在URL中发送参数。 And the do a $_GET .If it is set to a particular value then do a <script> document.getElementById("id").click(); </script> 然后执行$_GET 。如果将其设置为特定值,则执行<script> document.getElementById("id").click(); </script> <script> document.getElementById("id").click(); </script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM