Question
Hide Navigation if no bookmarks available though javascript action
I want to hide Navigation panel if there is no bookmarks are available.
I tried using create new action and execute javascript code:
function HideNavigation(bm){
if (bm == null) {
this.viewState = {overViewMode:1}
}
return;
}
HideNavigation(this.bookmarkRoot.children);Action runs perfectly and I saved the file but once I reopen the document still it shows Navigation.
Any idea to resolve the issue ?
