Home > Web Front-end > HTML Tutorial > Prevent the login page from appearing in the frame_html/css_WEB-ITnose

Prevent the login page from appearing in the frame_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:01:27
Original
1108 people have browsed it

When using frame page nested development, when the server is restarted, the login page will appear in the frame page,

So you need to use js in the login page to determine the current address information, and then jump to a separate login page.


The js code is as follows:

$("document").ready(function(){				//防止在frame里面出现登录页面				if(top.location!==self.location){ 					//alert(top.location); 					//alert(self.location); 					top.location.href=self.location.href; 				} 							});
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template