Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Thanked 0 Times in 0 Posts

    Firing an event after page redirect

    Hi everybody,

    I have a requirement in which, when the user clicks a button, he is to be taken to a new page. Once there, an onclick event must be automatically fired on an image in that page.
    I have no access to the code on the redirected page.

    Is it even possible?

    Any assistance would be of great help.


  2. #2
    Master Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Behind the Wall
    Thanked 568 Times in 561 Posts
    Is it even possible?
    no. for that you need to execute JS code on the loaded page.

    of course you can trigger the click event by a user script, but that is something the user needs to install in his browser.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


Posting Permissions

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