How to simulate a mouse click on another page of a tag button

Source: Internet
Author: User
When you open a.php
Automatically simulate mouse clicks
A-label button under another page (www.xxx.com) Add attention


Master, how should this code be written?


Reply to discussion (solution)

Why simulate opening a page and executing a default function directly?

This is a cross-domain issue

To simulate mouse operation then you have to do the desktop program. There are direct mouse functions that can be called.
If it's a mock-up, it's okay.

He was not submitted by the form, but by the onclick= "JavaScript way to submit the bad AH so I want to use the mouse to simulate the click of the Send to achieve the purpose of the submission

How long is it after opening a.php?
Is it instantaneous to another page? Or do you want to stay?

Always stay in a.php open a.php while simulating the mouse click Www.xxx.com under the add attention

You go to actually click on that button, grab the bag down to a.php, and let it curl to send the data.

He's going to log in. I've signed in with Snoopy, but his button is a text field submitted with JavaScript, so I'm stumped.

Let's go back to the other way around. It seems that the method of analog click can not be realized or the method of directly sending data is more likely.

He's going to log in. I've signed in with Snoopy, but his button is a text field submitted with JavaScript, so I'm stumped.
According to the landlord's statement seems to be asynchronous transmission with Ajax?
http://topic.csdn.net/u/20120516/16/d789c8ea-3313-4936-b500-4714e1aefb43.html?22335

It's a cross-domain problem, knowing that it's not.

Isn't it just the number of fans?

Doesn't anyone understand? I searched all over the Baidu Google CSDN have not found the relevant information! The head is going to blow up, isn't that an analog click problem?

Master, help me!!!!

Doesn't anyone understand?

Did you solve the problem? I also encountered a similar problem, after grasping the packet through curl can not be sent to the other side with JS triggered page, but the clutch is really to which page post it ...

  • 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.