加在<head>….</head>上
[JS]防止網頁被嵌入iframe或跳新視窗
2008/12/18加在<head>….</head>上
function $(_0){ window.onload = function(){ try{ var tmp = parent.window.location != ""; }catch(err){ parent.location.href = "網域名稱";//如://photo.minwt.com }finally{ var frameNum=window.top.length; if (frameNum == 0){ window.opener = null; window.close(); }}}
加在<head>….</head>上
加在<head>….</head>上