I apologise if this question is more directed at HTML/Javascript coding. How can I create a condition that if an image is clicked from within a page, it will cause an event to generate a particular piece of code. I have a piece of code that generates an output to excel using Win::OLE. I only want this to occur when a image is clicked and to not change the state of the current page (eg not post to another script). Another learning curve for me to over come. Thankyou to anyone willing to offer any help.