<script type="text/javascript"> // 判断当前页面是否为顶层窗口,即是否在iframe外面 if(window.top!=window.self){ window.top.location.href=location.href;// 往上跳一层 }</script>