Does anyone know how to create a link (<a> . . . </a>) with some piece
of javascript code that has
the onClick event set for some function that I also wrote (not a
build-in function).
I can find all sorts of samples in these disc.groups but none of them
seems to work for me.
I am focussed on Firefox, but some code that also works for IE, would
be appreciated.
BTW I know how to create elements in the html document, that is not the
problem. The problem
is that I seem not te be able to set the onClick event for some created
element. I tried for both
a link and also for a text-element.
I can set the onClick for some built-in function like alert('Nice
Day').
There are loads of examples to
be found for that, and they indeed work.
Thanks in advance,
André Lagerburg