Results 1 to 2 of 2

Thread: Simulate Link Clicking in PHP.

  1. #1
    Join Date
    May 2013

    Post Simulate Link Clicking in PHP.

    Hello to everyone.
    I am writing a PHP function which I want to simulate clicking to a url for example :
    <a href="www.specialink.com>Click me</a>

    I would like this clicking to be done automatically without the user intererence.Is this possible?Bear in mind tha the link is declared insiden this function.eg

    function linkClick($url){
    //the function will get the link as parameter and "click it"...

  2. #2
    Join Date
    Apr 2013
    You cannot simulate link click with PHP. You can however use javascript for it. Basically you would want to find <a> element by id and then change window location. For example something like this window.location = document.getElementById('myAnchor').href.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center