61,115
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script type="text/javascript">
function foo()
{
document.getElementById("show").style.display="block";
}
</script>
</head>
<body onclick="foo()">
<div id="show" style="display:none">显示</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>hidden</title>
</head>
<body>
<div id="obj" style="display:none">激活了!,即将打开维基百科</div>
<input type="button" onclick="document.getElementById('obj').style.display='block';window.open('http://zh.wikipedia.org/')" value="CLICK" />
</body>
</body>
</html>