Webページ共通JavaScriptコード

303938 ワード


<script>

//       
var url = "http://www.baidu.com";  
win=window.showModalDialog(url,window,"dialogLeft:400;dialogTop:200;dialogWidth:560px;dialogHeight:380px;scroll:yes;menubar:no;toolbar:no;status:no;");  
//              
var result = new Array();  
result[0] = "id_101";  
result[1] = "name_202";  
window.returnValue = result;  
window.close();  

script>

2、〖   〗     
[  ]:location.replace("view-source:"+location)
[  ]         。
[  ]     :
ソースファイルの  









===============================================================================
      
event.srcElement.tagName 
event.srcElement.type 
     
event.srcElement.setCapture();  
event.srcElement.releaseCapture();  
     
event.keyCode 
event.shiftKey 
event.altKey 
event.ctrlKey 
      
event.returnValue 
     
event.x 
event.y 
       
document.activeElement 
     
document.captureEvents(Event.KEYDOWN); 
       
document.all("txt").focus(); 
document.all("txt").select(); 
     
document.execCommand 
  COOKIE 
document.cookie 
     
document.oncontextmenu 
     
document.createElement("SPAN");  
document.elementFromPoint(event.x,event.y).tagName=="TD 
document.elementFromPoint(event.x,event.y).appendChild(ms)  
     
document.images[  ] 
       
document.onmousedown=scrollwindow; 
   
document.  .elements[  ] 
       
document.all.xxx.detachEvent('onclick',a); 
     
navigator.plugins 
      
typeof($js_libpath) == "undefined" 
    
   .options[  ] 
   .options.length 
     
document.getElementsByName("r1"); 
document.getElementById(id); 
   
timer=setInterval('scrollwindow()',delay); 
clearInterval(timer); 
UNCODE   
escape() ,unescape 
    
obj.parentElement(dhtml) 
obj.parentNode(dom) 
      
TableID.moveRow(2,1) 
  CSS 
document.all.csss.href = "a.css"; 
     
display:inline 
     
hidefocus=true 
       
style="word-break:break-all" 
     
 
     
  
       
obj.scrollIntoView(true) 
  
 
anchors 
       
location.search(); 
    
obj.contenteditable=true 
       
obj.execCommand 
      
/[^\x00-\xff]/ 
   
/[\u4e00-\u9fa5]/ 
                 
word-wrap: break-word; word-break: break-all;