Ok i am fairly new to Javascript programming. What i need to do is make a HTML webpage. On this webpage i will be placing a few links. What i need is to find out how i can make it so when a link is clicked a few lines of Javascript execute. Currently for testing purposes i am running my javascript in the head header of my HTML page. What needs to be done in order to achieve my goal.

Code is greatly appreciated.

Thanks