像百度空间使用如下代码防止页面被框架:
if (top.location != self.location) { top.location = self.location; } |
我们可以使用以下代码破解它!
var location= '' ; |
<!DOCTYPE html> < html xmlns = "" > < head > < meta http-equiv = "Content-Type" content = "text/html;charset=gb2312" /> < title >装载别人的页面</ title > < script >var location=''</ script > </ head > < frameset cols = "340px,*" > < frame src = "" ></ frame > < frame name = "main" src = "" ></ frame > </ frameset > < noframes > 你的浏览器不支持框架网页! </ noframes > </ html > |