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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul MacDonaldDirector, Information SystemsCommented:
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.
Neil RussellTechnical Development LeadCommented:
And be careful of what you try to do. LOTS of people take offence at automation on a page that they never consented to.
altosaxAuthor Commented:
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.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

altosaxAuthor Commented:
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?
Paul MacDonaldDirector, Information SystemsCommented:
My suggestion would require a change to the web page itself.  If you don't own the site, or can't compel the owner to make the change, my suggestion won't do you much good.

Indeed, short of writing an application that opened the web page and simultaneously prompted the user to do their due diligence, I can't think of another way to accomplish what you want.  I suppose you could set up some sort of batch file, but the user would have to launch the batch file each time, and if they can remember to do that, they can remember to enter the payment into your payment system.

Aside from some sort of checklist, I don't see any other way to do what you're after.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
altosaxAuthor Commented:
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.
Paul MacDonaldDirector, Information SystemsCommented:
Happy to have helped!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office Productivity

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.