Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScript document¶ÔÏó

¶ÔÏóÊôÐÔ:
document.title                 //ÉèÖÃÎĵµ±êÌâµÈ¼ÛÓÚHTMLµÄ<title>±êÇ©
document.bgColor               //ÉèÖÃÒ³Ãæ±³¾°É«
document.fgColor               //ÉèÖÃǰ¾°É«(Îı¾ÑÕÉ«)
document.linkColor             //δµã»÷¹ýµÄÁ´½ÓÑÕÉ«
document.alinkColor            //¼¤»îÁ´½Ó(½¹µãÔÚ´ËÁ´½ÓÉÏ)µÄÑÕÉ«
document.vlinkColor            //Òѵã»÷¹ýµÄÁ´½ÓÑÕÉ«
document.URL                   //ÉèÖÃURLÊôÐÔ´Ó¶øÔÚͬһ´°¿Ú´ò¿ªÁíÒ»ÍøÒ³
document.fileCreatedDate       //Îļþ½¨Á¢ÈÕÆÚ£¬Ö»¶ÁÊôÐÔ
document.fileModifiedDate      //ÎļþÐÞ¸ÄÈÕÆÚ£¬Ö»¶ÁÊôÐÔ
document.fileSize              //Îļþ´óС£¬Ö»¶ÁÊôÐÔ
document.cookie                //ÉèÖúͶÁ³öcookie
document.charset               //ÉèÖÃ×Ö·û¼¯ ¼òÌåÖÐÎÄ:gb2312
----------------------------
³£ÓöÔÏó·½·¨:
document.write()                      //¶¯Ì¬ÏòÒ³ÃæÐ´ÈëÄÚÈÝ
document.createElement(Tag)           //´´½¨Ò»¸öhtml±êÇ©¶ÔÏó
document.getElementById(ID)           //»ñµÃÖ¸¶¨IDÖµµÄ¶ÔÏó
document.getElementsByName(Name)      //»ñµÃÖ¸¶¨NameÖµµÄ¶ÔÏó
document.body.appendChi


Ïà¹ØÎĵµ£º

javascript ½ûÖ¹Êó±êÓÒ¼ü...

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" onmouseup=document.selection.empty() oncopy=document.selection.empty() onselect=document.selection.empty()></body>
½²ÉÏÃæºìÉ«ÏÔʾµÄ²åÈëµ½ÍøÒ³ÖоͿÉÒÔʵÏÖÊó±êÓÒ»÷ÎÞЧ
......

ÓÃjavascriptɾ³ýµ±Ç°ÐУ¬Ìí¼ÓÐÐ

ɾ³ýÐÐ
<script>  
  function   del(obj)  
  {  
        obj.parentNode.parentNode.removeNode(true);  
  }    
  </script>  
  <body& ......

ÀûÓÃjavaScript¶¯Ì¬Ôö¼Ó±í¸ñÐУ¬É¾³ý±í¸ñÐÐ

ʾÀý£º
- - - - - - - - - - - -
<body>
<input type="button" value="create" onclick="createTr();">
<table border='1' id="t" >
</table>
<input type="button" value="Ìá½»" onclick="okss();" />
</body>
<script type="text/javascript">
  &nbs ......

ÍøÒ³³£ÓÃС¼¼ÇÉ(JavaScript)

1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return f ......

¡¶Îò͸javascript¡·Ñ§Ï°±Ê¼Ç£ºÒ»¡¢Ç°ÑÔ

¡¶Îò͸JavaScript¡·Ñ§Ï°±Ê¼Ç
 
Ô­ÎĵØÖ·£ºhttp://www.cnblogs.com/leadzen/archive/2008/02/25/1073404.html
 
ÕâÊÇÒ»±¾ºÜÐÎÏóÉú¶¯µÄÊ飬ʹÎÒÃÇ¿ÉÒÔ¸üÉîµØÁ˽âÁËJavaScript¡£
 
ÒýÑÔ
 
   ±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂÆµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ