js压缩

在线js解压缩工具:http://dean.edwards.name/packer/

js压缩工具:http://aymoo.cn/js-compressor.html

 

如何正确的在XHTML插入FLASH http://www.aspstat.com/218

 

2.刷新:onbeforeunload(){}

 

3.

JS判断IE是刷新还是关闭

Js代码 复制代码
  1. window.onbeforeunload = function(){     
  2.       var n = window.event.screenX - window.screenLeft;     
  3.       var b = n > document.documentElement.scrollWidth-20;     
  4.       if(b && window.event.clientY < 0 ¦ ¦ window.event.altKey){    
  5.       alert("关闭");    
  6.               //关闭的代码    
  7.   }    
  8.   else{    
  9.       alert("刷新");    
  10.               //刷新的代码    
  11.   }    
  12. }  

window.event.returnValue = "真的要刷新页面么?";

你可能感兴趣的:(html,XHTML,IE,Flash)