Basically, if you are looking at a webpage, you are in the hands of your web browser (IE, Mozilla, Opera, Firefox, whatever), and you have whatever facilities it provides you.
There may be ways of attaching programs or scripts to your mouse button, but I wouldn't bank on it.
Sorry.