javascript学习(七):javascript中事件

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>   <head>     <title>js12.html</title> 	     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">     <meta http-equiv="description" content="this is my page">     <meta http-equiv="content-type" content="text/html; charset=UTF-8">          <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->  	<script type="text/javascript"> 	 	function mOver(object) 	{ 		object.color = "red"; 		alert(object);   //弹出信息"[object HTMLFontElement]" 	} 	 	function mOut(object) 	{ 		object.color = "blue"; 	} 	 	</script>    </head>      <body>          <font style="cursor:hand"      onclick="window.location.href='http://www.google.com'"                              </body> </html> 

你可能感兴趣的:(javascript学习(七):javascript中事件)