/* *只允许,同一域名下IFRAME *凨来了 */ var url='指定的iframe页面'; if ((parent.window.location.host != window.location.host) && (top.window.location.href != window.location.href)) { top.window.location.href = url; }else if(top==self){ <span style="white-space:pre"> </span>top.window.location.href = url; }