[Solved] Javascript not working with HTML external link


You have to call function on onclick event as :

onclick=”log(‘testing’)”

and you have to also use

return document.getElementById(id);

in Gid function

that’s it.

1

solved Javascript not working with HTML external link