You have been referred to this item:

Correct Use of Links

Accessible Scripting: When not to use links


Never use the "javascript:" pseudo in an anchor. Why? It contaminates the history with javascript links, it creates another instance of the script engine wasting CPU and memory, it runs in the global scope and bypasses the event system, it writes to the document by default unless explicitly prevented and from a design perspective, you're simply using the wrong tool for the job.