Link to home
Start Free TrialLog in
Avatar of hating_it
hating_it

asked on

is it possible to hide the toolbar of an already opened browser?

javascript problem. is it possible to hide the toolbar of an already opened browser?
for example, i log in from Page A (toolbar not hidden yet) -> redirected to Page B upon logging in (toolbar should be hidden in Page B now).
ASKER CERTIFIED SOLUTION
Avatar of sundaramkumar
sundaramkumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yep, i agree with sun.
This is not possble, because Javascript doesn't support it. Javascript doesn't support it, because Javascript is a web language to let us interact with the content of the browser window. Although there a few exceptions to this rule (like you can open a window or resize a window with Javascript) these are exceptions not the rule.

If you use Firefox, you might have noticed that you have better control on what Javascript can do in Firefox. You can, for example, prevent Javascript from resizing windows, without touching its other functionalities, using Firefox settings. So as you see, the majority of Javascript functionalities are about the content of the browser window, not the window itself.

Wish I can help
Huji
sundaramkumar is correct.

Cheers
hongjun
Actually it is more of a usability and security issue. Don't think it is going to be supported anyway.

In NS, it is possible but it will require permission.

<script>
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.menubar.visible=!window.menubar.visible;
</script>

In conclusion, consider redesign the login process.
Cheers
hongjun