保护自己的网页不被放入框架 <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>标题页</title> <Script LANGUAGE="JavaScript"> if(self!=top){ //判断是否是顶层,不是则将当前页设置为顶层 top.location=self.location; } </script> </head> <body> </body> </html>