DOM 操作之Windows对象 窗口操作

方法(函数)   属性

Window.函数();

Window.属性

       

<div style="30px; height:30px" onclick="Mingming()">随便</div>






<script type="text/javascript">
	   function Mingming()
	   {
		    alert("随便吧")
	   } 



   </script>

  

事件:调用你的函数。

<div>事件</div>’

示范图

未写完待续。

原文地址:https://www.cnblogs.com/cy960202/p/8684008.html