I occasionally see an HTML <a> element whose href attribute is a URI that has just javascript for the scheme, and an empty statement ; for the path.
What is the purpose of this?
Is it the same as
href="javascript:void(0);"?Is it the same as having no
hrefattribute at all?Is it the same as having no
<a>element at all?
Update
The precise content that I am seeing is <a href="javascript:;" style="cursor: default;"></a>. So is this just a way of controlling the cursor graphic?
<a>" possibly be the same as "Not having an<a>"?<div>text</div>is the same astext, except for any CSS implicationshref="javascript:;". If it is the same ashref="#"orhref="javascript:void(0)"then please write that as an answer, but I see no duplicate of this specific question