W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <script> function breakout() { if (window.top != window.self) { window.top.location = "/index.html"; } } </script> </head> <body> <input type="button" onclick="breakout()" value="跳出框架"> </body> </html>