<script type="text/javascript">
window.onload = function(){
document.getElementById('a').onclick = function(){
var div = document.getElementById('div');
div.innerHTML = 'show_text'
div.style.display = (div.style.display == '') ? 'block' : '';
return false;
};
};
</script>
<style type="text/css">
div {background: red; display: none; width: 100px; height: 50px;}
</style>
<a href="#" id="a">click</a>
<div id="div"></div>