Home  >  Article  >  Web Front-end  >  How to implement Cooike that the page can only be opened once_javascript skills

How to implement Cooike that the page can only be opened once_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:47:341312browse

Recently I am working on webIM and embedding it into the OA system. Since WEBIM is on a separate page, multiple pages will appear if clicked multiple times. In this way, under IE6, the server push will not recognize the page. So there are The following code:

Copy the code The code is as follows:



Just put the above code under the head. Haha, is it simple enough? Of course, the above code is mainly The solution is for pages opened with hyperlinks. If it is a page opened by window.open, it is even simpler. The code is as follows:
Copy code The code is as follows:

var win = null;//Just define a variable to judge
if (win == null)
{
win =window.open("Main.aspx", '', strfeatures);
}

Statement:
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