I have seen at many locations that people use javascript:
before functions(classes) or using attributes? E.g., javascript:Blob
, javascript:void(0)
.
I'm wondering what are the situation when using this notation can be necessary? Or what're the best practices regarding using or not using this?
Expanding scope of my question:
Can it be useful to use it without href
. I.e., in JS file directly?
Does ECMAScript have to do anything with it?