Home  >  Article  >  Web Front-end  >  Keep your menu on your website_javascript tips

Keep your menu on your website_javascript tips

WBOY
WBOYOriginal
2016-05-16 19:25:421116browse

Do you want your forum, help and other systems to maintain the left frame menu? The following code can help you implement this function. No matter how you open the content page, the menu frame bar will also be executed at the same time.

Copy the following code to the content page. The top frame may need simple adjustment.
function GoFrame(){if (top == self){location.replace("/?url=" location.pathname location.search);}}
GoFrame();

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