It is not possible to programmatically hide the menubar or toolbar on a window that is already open. I found similar JS from the net but it is for Netscape:
function showmenu()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.menubar.visible=true;
window.directories.visible=true;
window.statusbar.visible=true;
...
and I do not know if it works. (who's using Netscape anyway? Official support for Netscape ended on March 1st, 2008.)
Remember, your work is not yours alone. Somewhere, there are some codes written by others amongst us that depends on your work. By failing to see that you are part of their ecosystem, you are bound to break their code. *http://dotnetrandz.blogspot.com*
modified on Friday, March 26, 2010 4:00 AM