10 2012 档案

摘要:感谢群里的KB同学,好基友一辈子 1 window.onbeforeunload = function(){ 2 var b; 3 if(!b){ 4 t = setTimeout("jump()",150); 5 } 6 return "确定要离开这鸟页面?"; 7 }; 8 9 function jump(){10 window.onbeforeunload = null;11 location.href = "http://www.baidu.com/";12 b = true;//解决IE下的BUG13 } 阅读全文
posted @ 2012-10-20 22:31 小猩猩君 阅读(355) 评论(0) 推荐(0)
摘要:1 var doc = document.all ? document.frames[0].document : document.getElementById("iframe").contentDocument;2 console.log(doc.body.innerHTML);3 console.log(doc.getElementById("box").innerHTML);1 var iframe = document.getElementById("xx");2 var doc = document.all ? iframe 阅读全文
posted @ 2012-10-16 08:23 小猩猩君 阅读(726) 评论(0) 推荐(0)