This (apperantly) will do the magic:
<a href="javascript:(function(){document.getElementById('something').style.display = 'inline';})()">
But I won't bet for it, and also I'm not able to figure out why using self-executing anom function it works.
More about self-executing anom functions here:
http://markdalgleish.com/2011/03/self-executing-anonymous-functions/
Even more about this (ancient?) technique also known for the purists as "Immediately-Invoked Function Expression (IIFE)":
http://benalman.com/news/2010/11/immediately-invoked-function-expression/
I'm still trying to understand why does it work, I think it's related to this functions are executed "inmediatly" and that it means before even the click event being propagated or the browser tries to navigate,it could be when the browser/jsengine access the href attr.
You should try then use the "onclick" event:
<a href="#" onclick="document.getElementById('something').style.display = 'inline'">
prompt
</a>
See this question (related to the above technique):
javascript hide/show element
And related to use href attribute for js scripting see this question:
JavaScript function in href vs. onclick