In Javascript or Html hey i dont care how can i get it to run a program everytime the page is opened????

This is for a network webpage so i want it to run a prgram on the network drive?

Anyone help????