span的用法

<html>
<head>
</head>
<body>
 <span style="cursor:hand" onclick="javascript:aa()">测试哈</span>
</body>
<script type="text/javascript">
 function aa(){
  if(confirm("确认要打开吗?"))
  {
   window.open("ddd.htm");
  }
  else
  {
   return "";
  }
  
 }
</script>
</html> 

你可能感兴趣的:(JavaScript,html)