加载时隐藏菜单

时间:2017-11-16 09:55:05

标签: javascript html

我的问题是我需要在页面加载时隐藏我的网页中的菜单,即在我的页面中有很多网址,同时从一个网址导航到另一个网址我想在加载图标时隐藏菜单显示在页面中,加载图标后应显示消失。

我已经尝试过这个

frame.contentWindow.document.addEventListener("load",hideTeamReviewMenu(),false);
    window.onbeforeunload=function hideTeamReviewMenu() {    

    if (document.getElementById('teamReviewMenuId') != null) {
        if ($(headerMenuList).find('#teamReviewMenuId')[0] != null) {
            $(headerMenuList).find('#teamReviewMenuId')[0].style.display = "none";
        }
    }
}

0 个答案:

没有答案