Click here
Note that JavaScript:functionName() can be used with href to give the location parameter that is associated with the anchor tag's href attribute.. In this case the function is alert.
Click here again