How to simulate mouse clicking the tag button on another page

Source: Internet
Author: User
How to simulate mouse clicking the tag button on another page when A. php is opened
Automatically simulate mouse clicks
Add the tag button under another page (www.xxx.com)


How should experts write this code?


Reply to discussion (solution)

Why simulate opening the page and simply execute a default function?

This is a cross-origin issue.

To simulate the mouse operation, you have to do the desktop program. There are direct mouse functions that can be called.
If you want to simulate data submission, you can.

He does not use form for submission, but does not use onclick = "javascript for submission. so I just want to simulate click sending with the mouse to achieve the goal of submission.

How long does it take to open A. php?
Is it an instant transfer to another page? Or stay?

Stay in A. php, open A. php, simulate the mouse, and click add follow under www.xxx.com.

Click the button to capture the package and send it to a. php.

I have used snoopy to simulate the login he wants to log on to, but his button is a text field submitted in javascript, so it's hard for me.

Try another method. it seems that the method of simulating clicks cannot be implemented, or the method of directly sending data is more likely.

I have used snoopy to simulate the login he wants to log on to, but his button is a text field submitted in javascript, so it's hard for me.
According to the landlord's statement, it seems that Ajax is used for asynchronous transmission?
Http://topic.csdn.net/u/20120516/16/d789c8ea-3313-4936-b500-4714e1aefb43.html? 22335

This is a cross-domain problem that cannot be solved.

Isn't it just the number of followers? why?

Does anyone understand this? I searched Baidu Google CSDN and did not find any relevant information! Is it so difficult to simulate clicks?

Experts Help me !!!!

Does anyone understand this?

Is the problem solved? I also encountered a similar problem. after a packet is captured, it cannot be sent to the webpage triggered by JS by the other party through curl, but the page to which the packet is captured is actually POST ........

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.