At 3:35 PM +0100 8/12/06, David Dorward wrote: >Since you are calling the function immediately and then assigning the >return value from the function to the onclick property. You need to >assign a function to it. > >a.onclick = function () { test1(1); } That worked great. Many thanks to all for your ideas. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com