// 防止 iFrame function location_top(){ if(top.location!=self.location){ top.location=self.location; return false; } return true; } location_top();