超链接调用js的方法showContent显示内容。
<a href='javascript:showContent("要显示的内容","target")'>超链接</a>
<div id='target' style="border:1px solid #ccc; width:200px;height:50px;"></div>
<script type="text/javascript">
//使用showContent方法把content显示在id是target的元素中。
function showContent(content,target){
document.getElementById(target).innerHTML=content;
}
</script>结束