我的问题是我需要在页面加载时隐藏我的网页中的菜单,即在我的页面中有很多网址,同时从一个网址导航到另一个网址我想在加载图标时隐藏菜单显示在页面中,加载图标后应显示消失。
我已经尝试过这个
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";
}
}
}