[Javascript] onclick and functions [solved]

tedd tedd at sperling.com
Sun Aug 13 11:42:13 CDT 2006


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



More information about the Javascript mailing list