Hi there,
Can anyone help, seem to have an issue placing a onclick event of an anchor tag, it works on an image.. I have this
this.whereAreWe = document.getElementById('where_are_we');
this.whereAreWe.onclick = this.whereAreWe;
I have placed a A tag using the id of "where_are_we" ...
but it never executes.. if I change it to an image it works..
I also put the href="#"
Is there something special about anchor tags and applying the onclick via code?
I also tried removing the href, If I remove the href it doesn't show me the little hand icon.
I have put a breakpoint in the function and with an image it enters but using the anchor it doesn't
Any ideas?