A few options exist:
These are considered bad practice and I would never recommend something like this for production. I typically use the first option when linking to pages that don't exist during the development phase.
Preferably, I would not use a at all, I switch to a span in example below:
Test Link
and just style an element accordingly:
I am in-lining the js and just hand writing a here to show a different approach which avoid the need to override the default behavior.