【发布时间】:2014-04-17 17:04:56
【问题描述】:
试图将此信息链接到“单击此处查看..”并使其显示在同一页面上
<script type="text/javascript">
function rhinoinfo(){
document.getElementByID('defArea').innerHTML="";
"There are five different species of rhinoceros. The name rhinoceros means
‘nose horn’ and is often shortened to rhino. It comes from the Greek words
rhino (nose) and ceros (horn).White rhinoceros are the second largest land
mammal. Rhinos can grow to over 6 feet tall and more than 11 feet in length.
Rhinoceros have thick, sensitive skin. Source: Savetherhino.org";
}
</script>
<p>Click here to see information about the rhino.</p>
</div>
<div id="defArea">
<p></p>
</div>
</body>
</html>
【问题讨论】:
-
请同时包含您的代码的演示小提琴。
标签: javascript html function hyperlink innerhtml