+ 3
What is the difference between onclick="javascript:myfun()" and onclick="myfun()"
I have been doing some research but I have failed to find a satisfying answer for this.
3 Respuestas
+ 5
Nothing. javascript:myfun() would call the function myfun() whilst myfun() would call the function myfunc()
+ 2
Yep, no difference, I'm not sure but I think you can also do php: or something, it woulf be pointless if they add javascript: if theres no other languages included
+ 1
meaning there is no difference