div href javascript document getElementById hidden text style display

1
2
3
4
<div>
<a href="javascript:document.getElementById('hidden.text').style.display = 'block'">Show text</a>
</div>
<div id="hiddenText" style="display:none;">Hidden</div>