Link to home
Start Free TrialLog in
Avatar of altosax
altosax

asked on

Is it possible to trigger an action / open a file when a website is visited?

I want to have some type of event fire when a user visits a specific web address, is this possible?

To be more specific, when a user goes to a payment portal, I want to have a file open (or similar) that will have 'On Open'  code in it to send an email.

To clarify, what will actually take place I have covered, I only outlined to give perspective, but the bit I am missing is making this fire based on a web address being visited.
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

javascrip has an onload event that will fire when a web page loads.  I expect you could use that, though it will only work in browsers that have javascript.
And be careful of what you try to do. LOTS of people take offence at automation on a page that they never consented to.
Avatar of altosax
altosax

ASKER

Thanks very much Paul, I will learn how to do just that, it sounds like exactly what I need.

Thanks for the concern Neil, very valid point, however this is something they will welcome with open arms as they constantly forget to do the required actions after visiting this site. Appreciate the thought though.
Avatar of altosax

ASKER

Just to double check Paul, I am not the writer of the website. Not sure if that got lost in translation. I just want to trigger a batch file or vb file or some such, to kick off whenever someone visits a particular website. To put it in perspective, it is a webpage where our users take a credit card payment, but they invariably forget to then add the payment into our system, so I want the fact that they visited the site to trigger a pop up that will ask them if they took a payment whilst on the webpage.

Is this still feasible with your suggestion?
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of altosax

ASKER

I think you have hit on about the best we can get. I will have a batch file that opens the site and then also runs vb code that will accomplish the other stuff. Thanks Paul.

I will install a different browser for everyone and have it open in that, so normal browsing isn't affected and will have a pause in the batch file and then close the site after a period of time they define for me.

Thanks again.
Happy to have helped!