Well, this is an ugly requirement and thus ugly code to fulfill it, but it works:
http://jsfiddle.net/ALgnz/[
^]
The basic solution is to use jQuery (you could have used javascript directly but jQuery is quick and easy). I did a loop that shows the value from 2 to 20 using multiples of two like so:
$(document).ready(function(){
$("#myButton").click(function(event){
for(i=2;i<22;i+=2)
{
alert(i);
}
});
});
Then when you click on the button, it opens an alert for each value. Since it is a loop, you could mess with the values using passed in values so that you could show any multiple with any range if you wanted.